This is a migrated thread and some comments may be shown as answers.

Series and Line format

0 Answers 86 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Sylvain
Top achievements
Rank 1
Sylvain asked on 16 Oct 2012, 12:40 PM
Hi,

I'd like to understand something concerning the line is the series.

Here's my code :
@(Html.Kendo().Chart<Noolibee.Presentation.Web.Administration.Areas.Nodes.Models.EnergyGraphModel>()
    .Name("intensityKendoChart")
    .ChartArea(chart => chart.Background(""))
    .DataSource(dataSource => dataSource.Read(read => read.Action("GetIntensityValues", "Plugins")))
    .Series(series =>
    {
        series
            .Line(line => line.Value)
            .Name("Ampere")
            .Color("blue")
            .Tooltip(true)
            .Width(2)
            .Markers(marker => marker.Type(ChartMarkerShape.Circle).Size(4));
    })
    )

Between 2 markers, I have a nice blue line.

Then I try to add a value for the XAxis, so I added the line:
.CategoryAxis(axis => axis.Categories(model => model.Date))

Now, the nice blue line has disappeared but the dates are displayed in on the axis ! Why ? How can I have my Xaxis with the dates and a nice blue line between the markers ?

Another little question : how to customize the dates so all dates are not displayed because it's a big mess on the axis :-)

Thanks
Sylvain

No answers yet. Maybe you can help?

Tags
Chart
Asked by
Sylvain
Top achievements
Rank 1
Share this question
or