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.
Thank you for the detailed explanation and the data example. It make it perfectly clear. I am investigating possible approaches and will update you with information and a sample if any of them do the job.
I am looking for more of a timeline look and thought that the stacked bar chart would give me what I was looking for.
My data would look something like this:
11/14/16 8:00:00, SETUP, 4511/14/16 8:45:00, RUN, 6011/14/16 9:45:00, DOWN, 1511/14/16 10:00:00, RUN, 6011/14/16 11:00:00, DOWN, 1511/14/16 11:15:00, RUN, 120
I would like all of the SETUP entries to be Blue, all of the RUN to be Green, and all of the Down to be RED. I wanted a single bar showing a timeline of 315 minutes with each event laid out on the timeline in the sequence in which they happened. I would like to keep it fairly small because it would sit on the top of the page showing our machine operator in a small graphic what events they did while running the machine.
My company is a printing company when a new print job starts, the machine operator has to do a setup to prepare the machine for printing. Once the print is clean, they go into RUN mode. If any thing happens like bad print or machine breaks, they go into DOWN mode. Once it is running again, they go back into RUN mode. Setup generally only happens once per job but RUN and DOWN happens often.
I thought about using both a Timeline or Status Bar but have not had any luck with either because a Timeline wants to give me multiple lines as you did in the chart above... And the Status bar does not look like it will support multiple segments with different colors and times.
I have been searching the internet for something like a good example of what I am looking for but I am not having much luck. I have been using Infragistics for a while and like your product so I have high hopes in continuing to use your controls.
Thanks