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
975
column chart - cant get x axis to show
posted

Can anyone show me how to get my graph to show values along the x axis ? Im passing data into the chart that has a volume (numeric) and a date.  I want to display volume in the 'Y' axis and dates along the 'X' axis.  My dataset has 31 records, so thats 31 dates each having an associated volume.  Ive followed the examples as best I can, but the X axis has nothing, no columns.  The Y axis has a numeric range, so that seems to work OK.  Heres my grid

@(Html.Infragistics().DataChart(Model.Records)
                .ID("chart")
                .Width("100%")
                .Height("500px")
                .Title("Contract")
                .Subtitle("subtitle here")
                .Axes(axis =>
                {
                    axis.NumericY("VolumeAxis").Title("Volume(MW)");
                    axis.CategoryDateTimeX("DateAxis").Title("Date");
                })
                .Series(series =>
                {
                    series.Column("Hedges").XAxis("DateAxis").YAxis("VolumeAxis").IsHighlightingEnabled(true).IsTransitionInEnabled(true).ValueMemberPath(v => v.Volume);
                })
                .ResponseDataKey("Records")
                .DataSourceUrl(Url.Action("GetChartData", "Contract", new { contractId = Model.ContractId }))
                .DataBind()
                .Render()
            )

Ive never used the chart component before and the infragistics help system is very, very poor (hardly anything for mvc helper) so its proving to be a very steep learning curve.  Can anyone tell me where Ive gone wromng with the above ?

Parents
No Data
Reply
  • 25665
    Offline posted

    Hello Mark,

    Thank you for contacting Infragistics!

    This issue has been logged with the ID 237654. You also have a private case(CAS-184258-M6K1D5) where I will provide you with further information concerning this matter.

Children
No Data