Using the search app I can run a search like this:
which gives me a bar chart where
- there is a bar for each combination of sp_day / sp
-
When I try to code this in my dashboard xml I have to drop the "| chart ..." from the end of the search term and then all the bars are always just drawn in the same color. How can I reproduce the behaviour from the search app on my dashboard?
I assume you have a HiddenChartFormatter stanza somewhere in your xml. If so, try adding a statement like this to it:
<param name="charting.fieldColors">{"Value1":0x00FF00,"Value2":0xFF0000,"Value3":0xFF0000}</param>