Series and Line format

1 posts, 0 answers
  1. Sylvain
    Sylvain avatar
    1 posts
    Member since:
    Apr 2012

    Posted 16 Oct 2012 Link to this post


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

    Here's my code :
        .ChartArea(chart => chart.Background(""))
        .DataSource(dataSource => dataSource.Read(read => read.Action("GetIntensityValues", "Plugins")))
        .Series(series =>
                .Line(line => line.Value)
                .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 :-)

Back to Top