How to insert a bar with different color into StackedBarChart?
-
Hi,
I'm new here. And I have a question about QChart: is it possible to insert a bar with different color into StackedBarChart? An example is shown in the following pic. Any suggestion would be appreciated!
BTW, I'm not sure if it's suitable to raise the question in this category or not. If there is a more suitable place, please let me know. Thank you.
-
@A-A-SEZEN
I tried that, it didn't work. But I have found a workaround by myself: insert zero into the existing barsets, and then add a new barset for red, containinng 5 zero and 1 non-zero at the end. For the existing barsets, the corresponding bars in the chart are not changed since the extra data is 0. For the new barset, it only contain one color int the bar because the high of the first 5 rectangles is 0. So my question is solved. Ha.. -
@A-A-SEZEN said in How to insert a bar with different color into StackedBarChart?:
hat. If there is a value, the color is there, otherwise it is not.
Yes, it's always been there, just I didn't find it before. Thank you all the same!
BTW, how can I set this topic to be SOLVED? I don't find out that approach...
-
@Lee908 said in How to insert a bar with different color into StackedBarChart?:
how can I set this topic to be SOLVED?
"Topic Tools" in bottom right corner, then "Mark as Solved".