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?
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
I edited the second image to show what I want to accomplisch. It's the same as in your sample, but I want to move the line and the year to the left so it starts at the vertical axis:
How can I do this when "1995" is a date instead of a number? Is this possible?
I am not able to replicate such behavior. I tried binding just one value for the splineArea chart, the result you can see here.If bidning more than one records, spline is rendering fine.
Please provide a working sample that I can investigate for you and I will be happy to do it for you.