Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
DataChart SplineArea with one value starts in the middle instead of on the left
posted

I'm using a DataChart SplineArea in my ASP.NET MVC application. When I have only 1 value, this is shown in the middle of my chart:

I want this to start on the left:

I could set minimunValue for this axis, but this is a date. Can this be done?

Parents Reply
  • 16310
    Offline posted in reply to Ronny Gilisen

    Hi Ronny,

    I have updated the sample in jsfiddle and now the year is a real date object, which moved the line to the left by default. I also needed to change the type of the xAxis to be "categoryDateTimeX" and asset the dateTimeMeberPath of the xAxis to match the "Year" field in the data source:

                        axes: [
                            {
                                name: "xAxis",
                                type: "categoryDateTimeX",
                                dateTimeMemberPath: "Year",
                                label: "Year",
                                labelTextStyle: "8pt Verdana",
                            },

    Please let me know if you have further questions, I will be glad to help.

    Hristo

Children
No Data