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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

121247 Nov 23,2015 12:09 PM Nov 24,2015 04:23 AM JavaScript 1
loading
Tags: ejChart
James Butler
Asked On November 23, 2015 12:09 PM

This is my template code:

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


Here is my JavaScript:
// create chart2 series
                    $('#<%=Chart2Div.ClientID%>').ejChart({

                        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.
Thanks.




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

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
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let us know if you have any concerns.
Regards,
Deepaa.

CONFIRMATION

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.

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.

;