Apr 23, 2013, 8:51 AM
[OPEN] [#217] Highlighting an item without highlighting the entire line
Hi,
When I'm trying to display charts that have an item highlighted on mouseover it automaticly changes the entire line. See example:
The top chart item does have the highlight I want. But the rest of the line is bigger than the line in the graph below it.(How it originally looks)
Here is my source for the chart
Thank you,
MWM2
When I'm trying to display charts that have an item highlighted on mouseover it automaticly changes the entire line. See example:
The top chart item does have the highlight I want. But the rest of the line is bigger than the line in the graph below it.(How it originally looks)
Here is my source for the chart
lineTips.Renderer.Fn = "LineTipRenderer";
var hightlightConfig = new SpriteAttributes { Size = 5, Radius = 5, StrokeWidth = 5, Width = 1, Fill = "red" };
var serie = new LineSeries
{
SeriesID = id + "Series" + counter,
Axis = Position.Left,
XField = new[] { x },
YField = new[] { series },
ShowMarkers = true,
Highlight = false,
HighlightConfig = hightlightConfig,
Fill = false,
ShowInLegend = true,
Tips = lineTips,
SelectionTolerance = 5,
MarkerConfig =
new SpriteAttributes
{
Type = SpriteType.Circle,
Radius = 0,
Size = 0,
Cursor = "pointer"
},
Title = seriesLabel
};
function LineTipRenderer(si, item)
{
item.series.highlightItem(item);
this.setTitle('<span style=\"color:' + item.series.seriesStyle.fill + '\">' + item.series.title + ': ' + si.data[item.series.yField] + '</span><br />' + si.data["X"]);
}
Is it possible to only display the highlight on the item without highlighting the entire line?Thank you,
MWM2
Last edited by Daniil; Apr 25, 2013 at 4:21 AM.
Reason: [OPEN] [#217]