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 minutesRun - 30 minutesDown - 15 minutesRun - 45 minutesDown - 5 minutesRun - 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.
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.
Considering further your request it seems that a typical line chart would do better for you. This is valid in case that your data shows the period of time when a server was running, down, etc. This means the chart will show a line that goes though time and for the certain period of 30 min when the server was down the color is red, the next 45 min when it was running the line is green, etc.