How to change the color of certain bars based on x-axis values. Any samples would be great.
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
The following code is not tested and is only for demonstration:
// chart onRender event handler, SVG bar chart
function beforeDrawDataPoint( dph, fill, icsc ) { if(dph.getBaseValue().toString() == "insert_x_axis_value") { fill.set( 255, 0, 0, 255 ); // make bar red } }