I have a chart, which allows the user to click on a column, to refresh the chart with data from the next level in the hierarchy.
It works well, apart from the rightmost columns, on narrower displays. In these cases, the tooltip completely obscures the column, making clicking on them difficult.
I've attached an example image.
The chart definition is:-
@(Html.Kendo().Chart<
Dashboard.Models.BarChartDataItem
>(Model)
.Name((string)ViewBag.ChartName)
.Title((string)ViewBag.ChartTitle)
.Theme("bootstrap")
.Legend(legend => legend
.Position(ChartLegendPosition.Top)
.Visible(false)
)
.Series(series =>
{
series.Column(model => model.BarValue).Name("Actual").Tooltip(t=>t.Visible(true).Template("<
div
>Category:#=dataItem.AxisDescription#</
br
>Contribution: £#=dataItem.DisplayBarValue#</
div
>"));
})
.ChartArea(area => area
.Height(350)
.Background("transparent")
)
.ValueAxis(axis => axis.Numeric()
.Labels(labels => labels.Format("{0:N0}"))
.Title((string)ViewBag.Yaxis)
.AxisCrossingValue(0, int.MinValue)
.Line(line => line.Visible(false))
)
.CategoryAxis(axis => axis
.Labels(false))
.CategoryAxis(axis => axis
.Categories(model => model.AxisValue)
.Labels(labels => labels.Rotation(-45).Padding(5))
.MajorGridLines(lines => lines.Visible(false))
.Title((string)ViewBag.Xaxis)
)
.Events(e=>e.SeriesClick("seriesClick"))
.Tooltip(tooltip => tooltip
.Visible(true)
.Format("{0:N2}")
)
)
Is it possible to change the tooltip position? There don't seem to be any position options available.
In this case, displaying at the top of the column would be best, ensuring nothing is obscured.
Thanks