3 Replies Latest reply: Jun 5, 2015 7:46 AM by Mike Czerwonky RSS

    Change Line Chart to Bar based on condition

    Mike Czerwonky

      I have a line chart that sometimes only has one data point depending on which year or years are selected as my dimension.


      I want the chart to automatically change to a bar chart when there is only one data point and be a line chart when more than one year is selected.


      I do now want to create a separate chart, nor do I want to hit a button to make the change.   I want to write a condition that will change the chart automatically as my end user works in the production app.


      Hope someone has done this already and can help.





      line chart with 1 data point.PNG