We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can't get dataLabel template to work in asp.net application

Thread ID:





121247 Nov 23,2015 05:09 PM UTC Nov 24,2015 09:23 AM UTC JavaScript 1
Tags: ejChart
James Butler
Asked On November 23, 2015 05:09 PM UTC

This is my template code:

<div id="template" runat="server">
        <div id="point" runat="server">#point.y#</div>

Here is my JavaScript:
// create chart2 series

                        commonSeriesOptions: {
                            type: 'column',
                            enableAnimation: true,

                        primaryYAxis: {
                            labelFormat: 'c',
                        primaryXAxis: {
                            title: {
                                text: 'IAPD Category',
                                font: {
                                    fontFamily: 'Segoe UI',
                                    size: '16px',
                                    fontWeight: 'bold',
                                    color: 'grey',
                        series: [{
                            type: 'column',
                            dataSource: jsonObject,
                            xName: "Xvalue",
                            yName: "YValue",

                            marker: {
                                dataLabel: {
                                    template: 'template',
                                    visible: true,
                                    font: { color: 'black', size: '20px' },
                                    textPosition: "middle"
                       canResize: true,
                        depth: 100,
                        wallSize: 2,
                        tilt: 0,
                        rotation: 20,
                        perspectiveAngle: 90,
                        enableRotation: true,
                        enable3D: true,
                        title: {
                            text: 'Categories for Fiscal Year ' + fYear,

This is not working though, and my dataLabel is not displaying like the point.y value is displaying. I set the PrimaryYAxis to display in currency format, but the dataLabel in my column is display the integer value with a 'c' on the end of it. Instead of $5,888.00 it is displaying as 5888c
How to fix this please.

Deepaa Pragaasam [Syncfusion]
Replied On November 24, 2015 09:23 AM UTC

Hi James,
We are able to reproduce the issue and we have logged a defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates

Please let us know if you have any concerns.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon