Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Layout HTML5 Bar Chart based on report parameter value
Migrateduser
<p>Hey,</p><p> </p><p>im trying to set the color of my HTML5 bar chart based on the value of a report parameter.</p><p>I can change the color but i dont find a solution the get i changed based on the value of the parameter.</p><p> </p><p>This is the Script i use in the Client Script:</p><pre class="_prettyXprint _lang-js">beforeDrawDataPoint: function(point, pointOptions, chart, seriesIndex, pointIndex){var **** = ???var val1 = ****.getParameterValue("HTLPI");var val2 = ****.getParameterValue("LTLPI");if( point.y < val1 ) pointOptions.color = 'red';else if(point.y >= val1 && point.y < val2) pointOptions.color = 'yellow';else if(point.y >= val2) pointOptions.color = 'green';else pointOptions.color = 'blue';}</pre><p>The Part with the **** and ??? is the one i dont know how to handle!
Does anybody have an idea for a solution?</p><p> </p><p>kind regards</p><p>Freddy</p>
Find more posts tagged with
Comments
There are no comments yet