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

Bar chart series note

5 Answers 125 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 28 Oct 2014, 04:26 PM
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")
            )
)

5 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 30 Oct 2014, 08:27 AM
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.

 
0
Bob
Top achievements
Rank 1
answered on 03 Nov 2014, 01:23 PM
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?
0
Hristo Germanov
Telerik team
answered on 05 Nov 2014, 12:33 PM
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.

 
0
Bob
Top achievements
Rank 1
answered on 05 Nov 2014, 03:13 PM
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));
})
0
Doug
Top achievements
Rank 1
Veteran
answered on 07 Aug 2016, 11:23 PM
Thanks Bob, works like a charm!
Tags
Chart
Asked by
Bob
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Bob
Top achievements
Rank 1
Doug
Top achievements
Rank 1
Veteran
Share this question
or