Hi,
I am rendering multiple series ScatterLine chart. On rendering some of the series lines appear very thin and some thick.
Here is the screenshot for reference https://www.dropbox.com/s/f6v8wyptua0y8na/ThinLines.png
Hi, sanjaysutar
You may notice on the screenshot that you provided in the first posting that the first three series are with the same (default) thickness and the last one is thicker. This is caused by setting Thickness(5) for the last chart series. If you want all series to have the same thickness you need to set this explicitly for each one of them. Besides, that is true for the ShowTooltip() and TooltipTemplate() calls. The chart you configured perhaps is showing tooltips only for the last thicker series.
Cheers, Lazar
Hi Lazar,
Below is the code:
@(Html.Infragistics().DataChart(Model.SpectralChannelData.AsQueryable()) .ID("spectralChart") .Width("100%") .BottomMargin(5) .TopMargin(5) .LeftMargin(5) .RightMargin(5) .VerticalZoomable(true) .HorizontalZoomable(true) .OverviewPlusDetailPaneVisibility(Visibility.Visible) .Axes((axes) => { axes.NumericX("xAxis").Stroke("Black").StrokeThickness(4).MajorStroke("Whitesmoke"); axes.NumericY("yAxis").Stroke("Black").StrokeThickness(4).MajorStroke("Whitesmoke"); }) .Series(series => { series.ScatterLine("scatterSeries1", Model.Data1) .XAxis("xAxis").YAxis("yAxis").MarkerBrush("Black") .XMemberPath(data => data.SpectralPoint) .YMemberPath(data => data.Wavelength); series.ScatterLine("scatterSeries2", Model.Data2) .XAxis("xAxis").YAxis("yAxis").MarkerBrush("Black") .XMemberPath(data => data.SpectralPoint) .YMemberPath(data => data.Wavelength);
series.ScatterLine("scatterSeries3", Model.Data3) .XAxis("xAxis").YAxis("yAxis").MarkerBrush("Black") .XMemberPath(data => data.SpectralPoint) .YMemberPath(data => data.Wavelength);
series.ScatterLine("scatterSeries4", Model.Data4) .XAxis("xAxis").YAxis("yAxis").MarkerBrush("Black") .XMemberPath(data => data.SpectralPoint) .YMemberPath(data => data.Wavelength) .ShowTooltip(true) .Thickness(5) .TooltipTemplate("tooltipTemplate"); }) .DataBind() .Render() )
I was not able to replicate this behavior. Namely, configuring multiple scatter line series with identical settings and having the chart to produce lines with different thickness.
I configured a chart with a code like this:
and the result was the chart that you can see below.
Please, provide the code you are using to configure chart series if possible.