I'm making a chart with a pivot by JS:Http://www.igniteui.com/pivot-grid/chart-integration
Currently, the chart is working well when the pivot has 1 row and one column. But when the pivot has 2 row and one column, it is not working.I want to display it with more categories on the xAxis, yAxis as this example:Http://es.infragistics.com/samples/windows-forms/chart/2d-column-chart
However, I found that the support was only in ASP / .NET. Have you supported it on JS?
Hello Duong Ngo,
Thank you for your clarification.
I investigated your problem that you want to draw X axis labels in such a way as they represents grouping hierarchy.
There is not a simple built-in option which can reflects group hierarchy into X axis labels just by setting it, but in case of igDataChart, you may want to use igDataChart's refershCompleted event to get its canvas, put your business logic there and draw group labels.
Similar question is posted here:https://es.infragistics.com/community/forums/f/ignite-ui-for-javascript/91041/axes-labels-on-data-charthttps://es.infragistics.com/community/forums/f/ignite-ui-for-javascript/87223/stacked-column---multiline-labels
I hope this answer will help you.
Best Regards,
Noriko I.Developer Support EngineerInfragistics, Inc.
Dear Niriko I,
Sorry, because you are misunderstanding me.As a guide, I have made the chart can expand. But on the x axis, two types of items are displaying one line[You can see here]
https://gyazo.com/53ae609eb423062225f610ae895f4146
But currently i'm wanting on the x / y axis of the chart can show multiple lines like excel when choosing multiple rows or colums
https://gyazo.com/9e53f6b6e303ac81b760ba82cf059c24
Thanks in advance!
Could you tell me more exactly what your problem is?How is the chart not working?
I looked at http://www.igniteui.com/pivot-grid/chart-integration. As far as I see, the chart is updated expectedly when the "+ All Periods" is expanded so that the pivot grid has more than one row. Looking at updateChart function in the sample code in "Code View", you can also see how to update the chart.