SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
I’m having problems to get FastImpulseRenderableSeries or FastColumnRenderableSeries to behave as I need them to.
FastColumnRenderableSeries doesn’t scale the column width as I need it when there’s more than one series with interdigitated columns. I need different FillColor for some of the columns, but all columns of all series should be displayed with the same width and spacing. Is there a way to achieve this? e.g. absolute column width setting?
FastImpulseRenderableSeries doesn’t work with the default RolloverModifier. I’ll actually need a custom RolloverModifier, since I’ll need to display some custom properties which are not part of the IChartSeriesViewModel interface. But I thought the issue with the default RolloverModifier might be a bug, or something I haven’t quite understood yet.
I’ve written a demo application to illustrate both issues.
Unfortunately, there isn’t any way to set absolute column width. There where several requests for that, so we are going to improve this situation. Regarding different fill color for columns, there is the PaletteProvider property, which allows you to choose color depending on X,Y values of each data point, please, take a look at Drag horizontal threshold example to see it in action.
Concerning the second question, although impulse series doesn’t have default rollover marker by design, you can easily add it. There is RolloverMarkerTemplate property defined in IRenderableSeries:
<s:FastImpulseRenderableSeries SeriesColor="#0066FF"> <!-- Declare an optional point marker at the tip of each line --> <s:FastImpulseRenderableSeries.PointMarkerTemplate> <ControlTemplate> <Ellipse Width="5" Height="5" Fill="#0066FF" /> </ControlTemplate> </s:FastImpulseRenderableSeries.PointMarkerTemplate> <!-- Declare rollover marker --> <s:FastImpulseRenderableSeries.RolloverMarkerTemplate> <ControlTemplate> <Ellipse Width="9" Height="9" Fill="#AAE13219" Stroke="White" StrokeThickness="2" /> </ControlTemplate> </s:FastImpulseRenderableSeries.RolloverMarkerTemplate> </s:FastImpulseRenderableSeries>
Also, the DataContext for rollover marker is an instance of SeriesInfo type(not IChartSeriesViewModel), which has SeriesColor, SeriesName, IsVisible, DataSeriesType, XValue, YValue(data point), XyCoordinate, Open/High/Low/CloseValue(for Ohlc series). You can use these properties to create custom RolloverLabelTemplate for rollover.
Hope this helps! Please, ask if you need more info or have any questions!
<Window.Resources> <Style TargetType="SciChart:FastImpulseRenderableSeries"> <Setter Property="PointMarkerTemplate"> <Setter.Value> <ControlTemplate> <Ellipse Width="5" Height="5" Fill="#0066FF" /> </ControlTemplate> </Setter.Value> </Setter> <Setter Property="RolloverMarkerTemplate"> <Setter.Value> <ControlTemplate> <Ellipse Width="9" Height="9" Fill="#AAE13219" Stroke="White" StrokeThickness="2" /> </ControlTemplate> </Setter.Value> </Setter> </Style> ..... </Window.Resources>Please, let us know if this helps! Best regards, Yuriy
Please login first to submit.