Hi, I am developing a winchart which is having column with line chart and I would need to show the data as attached. Please provide ways to handle this situation.
Hello Sabeerali,
The UltraWinChart supports Column Line Chart Data. You can find out more information about this in our online documentation page. click here.
Since your legend resembles a grid structure would you consider using our UltraWinGrid control to design your legend? This would provide you with more functionality over the traditional legend. For details about our UltraWinGrid, please click here.
Let me know if you have any questions.
Hello, Michael DiFilippo,
Thanks for your response. How can we bring the legend items inside the Wingrid cell? Is there any sample related this case? If yes, this could help me more. Also, if we are designing like this, is it possible to export the same chart with legends(grid structure) to a pdf?. Please help.
Regards,
Sabeer
Hello Sabeer,
You can bind your data source to the UltraWinGrid. As for the look and feel, this would have to be managed yourself as there is no built-in way to migrate settings and legend items over.
You can use our Infragistics Document Library to publish your chart to PDF as a report. If you create your own legend using a control it won't be published along with the chart. You can export the UltraWinGrid to a PDF as a report using the UltraGridDocumentExporter
Export Chart
Export Grid
Let me know if you have any questions regarding this matter.
May I ask if you have any additional questions about the UltraWinChart?
If the chart has a conventional legend it will be included in the PDF, otherwise if you use something custom it won't be.
You can handle the ChartDrawItem event to change the background color of the columns with the following code. It will help to turn off any gradient style effects in the Chart Effects Editor.
UltraChart designer > Properties > Effects > Style > None
void ultraChart1_ChartDrawItem(object sender, Infragistics.UltraChart.Shared.Events.ChartDrawItemEventArgs e) { ultraChart1.Effects.Enabled = false; Box box = e.Primitive as Box; if (box != null && box.Path == null) { Color myColor = Color.Gray; box.PE.Fill = myColor; } }
Hello Michael,
Thanks.
My requirement is to export both the Chart and the own legend. Is there any way using any control to achieve the same?
Also,
I would like to know something, as you said, I am using column line chart. I am able to get the chart with the default colors(for both line and column). If I try to change the color, it is changing both column and line appearance. How can we change to get the look and feel as I posted the image?(Please refer the very first post).