Bar chart series note

6 posts, 0 answers
  1. Bob
    Bob avatar
    123 posts
    Member since:
    Sep 2012

    Posted 28 Oct 2014 Link to this post

    Hi, I need to display a total count per series in a note at end of bar per attachment.  The attachment is a screenshot of equivalent functionality in Telerik UI for AJAX page that I am converting over to MVC.

    Chart syntax at moment:
    @(Html.Kendo().Chart()
        .Name(Model.ChartName)
        .Title(title => title
            .Text(Model.ChartTitle)
            .Align(ChartTextAlignment.Left)
        )
        .HtmlAttributes(new { @class = "dashboardChart" })
        .Legend(legend => legend
            .Visible(Model.LegendVisible)
            .Position(ChartLegendPosition.Right)
        )
        .Series(series =>
        {
            series.Bar(new double[] { Model.AgedCount }).Name(Model.ChartAgedSeriesTitle).Color(myapp.Controllers.DashboardController.ChartSeries1Color);
            series.Bar(new double[] { Model.UnAgedCount }).Name(Model.ChartUnAgedSeriesTitle).Color(myapp.Controllers.DashboardController.ChartSeries2Color);
        })
        .ValueAxis(axis => axis.Numeric()
            .MinorUnit(1)
            .MajorUnit(Model.ChartMaxValue <= 10 ? 1 : 5)
            .Min(0)
            .Max(Model.ChartMaxValue)
            .MajorGridLines(lines => lines.Visible(true))
            .MinorGridLines(lines => lines.Visible(true))
            .Visible(true)
            .Labels(labels => labels.Visible(true))
            .MinorTicks(ticks => ticks.Visible(true))
        )
        .Tooltip(tooltip => tooltip
                .Visible(true)
        )
        .Events(events => events
                    .SeriesClick("onSeriesClick")
                )
    )
  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 30 Oct 2014 Link to this post

    Hello Bob,

    Unfortunately the Kendo UI Chart doesn't support total label. I would suggest to submit your request in Kendo's UserVoice so other members of the community can evaluate, comment on and vote for it. 

    Regards,
    Hristo Germanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Bob
    Bob avatar
    123 posts
    Member since:
    Sep 2012

    Posted 03 Nov 2014 in reply to Hristo Germanov Link to this post

    Is there anyway the Note or Tooltip could be used for this? 

    For example, the tooltip currently shows the value I want on hover, but is there any way to make the tooltip always appear?
  5. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 05 Nov 2014 Link to this post

    Hi Bob,

    This functionality is not supported and there is no possible workaround. 

    Regards,
    Hristo Germanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Bob
    Bob avatar
    123 posts
    Member since:
    Sep 2012

    Posted 05 Nov 2014 in reply to Hristo Germanov Link to this post

    Actually, I just added the labels property and it satisfied my requirement

    .Series(series =>
    {
        series.Bar(new double[] { Model.AgedCount }).Name(Model.ChartAgedSeriesTitle).Color(MyApp.Controllers.DashboardController.ChartSeries1Color).Labels(labels => labels.Visible(true));
        series.Bar(new double[] { Model.UnAgedCount }).Name(Model.ChartUnAgedSeriesTitle).Color(MyApp.Controllers.DashboardController.ChartSeries2Color).Labels(labels => labels.Visible(true));
    })
  7. Doug
    Doug avatar
    22 posts
    Member since:
    Feb 2005

    Posted 07 Aug Link to this post

    Thanks Bob, works like a charm!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready