Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
Category Series sample - Bar chart
posted

I was looking at this sample (http://samples.infragistics.com/jquery/chart/category-series) which demonstrates the various Category Series available in the chart control. I have a similar scenario, where the user will select the chart types they want to see. I tried to add bar chart to that dropdown but the code didn't support that. Is there any reason behind this.

Thanks

Guru

Parents Reply
  • 1775
    posted in reply to Guru

    Hi, Guru

    You can use the Bar and Column Series sample as an example how to switch between bar an column series. Basically, it defines two divs and creates two charts: one column, and the other bar on the two divs. Then upon selecting a chart type from the drop-down it hides one of the divs and shows the other.

    Please, investigate this solution. It is possible to remove all axes and series objects and define the again, and thus achieve the same functionality with only one div and chart object but it is more complicated. If you wish I can provide you such an example.

    Cheers, Lazar

Children