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
60
Stacked Chart question
posted

I would like to create a stacked chart with JSON data with repeating data values and all of the same data values I would like them to be the same color. Our machines go through different phases and I want to show those phases in a stacked bar chart (unless you have a better control).

The Data would be like:

Setup - 45 minutes
Run - 30 minutes
Down - 15 minutes
Run - 45 minutes
Down - 5 minutes
Run - 60 minutes

So the chart would be:

| Setup | Run | Down | Run | Down | Run |     future segments        |

I would like all the Setup segments the same color, as well as the same Run segments the same color and so on.

Parents
No Data
Reply
  • 16310
    Offline posted

    Hi,

    The stacked data chart does not render a given color for a given value, but does for a given series. This means you can use the brush property of each series to define a color for each stacked series. Still I am not completely sure on your scenario, so please try to provide a mock example of your data that will provide some insight. It will be also helpful to take some chart from http://www.igniteui.com/data-chart/stacked-series and tell me how it should be colored in your scenario.

    This should be enough to make it clear for me and I will be able to help you further.

Children