Change Bar color based on x axis value
Options
Answers
-
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
}
}Warning No formatter is installed for the format ipb0
Categories
- All Categories
- 108 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management