Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Display the y series values below the bar in the Bar chart
bcmp
<p>Much appreciated, if someone could share a sample to display the y series value below the bar in the bar chart.</p>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
Clement Wong
<p>Commercial, or open source BIRT? HTML5 charts?</p>
<p> </p>
<p>The following example add a value for the maximum value within the bar for an HTML5 chart.</p>
<pre class="_prettyXprint _lang-">
beforeDrawDataPoint: function(point, pointOptions, chart, seriesIndex, pointIndex)
{
if ( pointIndex == maxIndex) {
chart._chart.options.series[0].data[pointIndex].dataLabels = {
enabled: true,
color: 'white',
rotation: -90,
x: 4,
y: 20,
style: {
fontSize: '24px',
fontFamily: 'Arial, sans-serif'
}
};
}
},
beforeDrawSeries: function(series, seriesOptions, chart, seriesIndex)
{
maxIndex = series.processedYData.indexOf(series.dataMax);
},
</pre>