AUTHOR: Marin Bratanov
DATE POSTED: June 08, 2018
when I mouse over the cross marker, it turns white. Since the background is white, it effectively disappears.
There are three solutions:
<
telerik:LineSeries
>
MarkersAppearance
MarkersType
=
"Circle"
/>
telerik:RadHtmlChart
runat
"server"
ID
"RadHtmlChart1"
PlotArea
Appearance
FillStyle-BackgroundColor
"LightGray"
></
<telerik:RadHtmlChart runat=
ID=
<ClientEvents OnLoad=
"OnLoad"
<PlotArea>
<Series>
<telerik:LineSeries Name=
"Baseline %"
<LabelsAppearance Visible=
"false"
<MarkersAppearance BackgroundColor=
"#538ebb"
BorderColor=
MarkersType=
"Cross"
Size=
"12"
BorderWidth=
"2"
<LineAppearance Width=
"0"
<TooltipsAppearance DataFormatString=
"Baseline: {0:0}%"
Color=
"#ffffff"
<Appearance FillStyle-BackgroundColor=
<SeriesItems>
<telerik:CategorySeriesItem Y=
"1"
"3"
</SeriesItems>
</telerik:LineSeries>
</Series>
</PlotArea>
</telerik:RadHtmlChart>
<script>
function
myHoverVisual(e) {
var
defaultVisual = e.createVisual();
defaultVisual.options.stroke.color =
;
//defaultVisual.options.fill.color = "#538ebb"; //could be used for filled shapes like square, triangle, circle
return
defaultVisual;
}
OnLoad(sender, args) {
kChart = sender.get_kendoWidget();
opts = kChart.options;
opts.series[0].highlight = {};
opts.series[0].highlight.visual = myHoverVisual;
kChart.setOptions(opts);
</script>
Resources Buy Try