Hello,
Hope you are doing well. We believe we may have found a memory leak when using WebGPU affecting all SciChart.js 6.0.x versions.
Summary:
– With WebGPU, one chart with one line keeps about 7,000 texture views a
minute that it never releases, and page memory grows with it.
– The same page drawn with WebGL does not leak.
– A page with no SciChart that makes a WebGPU texture view every frame does
not leak either: the views are freed as garbage collection runs.
– Every release with WebGPU is affected: 6.0.1, 6.0.17 and 6.0.18.
The page makes its SciChart objects once and never removes any, so there is
nothing to call .delete() on. Only the data and the axis range change each
frame.
Environment:
– SciChart.js 6.0.1, 6.0.17 and 6.0.18
– Electron 44.6.0 (Chromium 152.0.7977.130) on Windows 11, build 26200
– Intel Iris Xe graphics, Direct3D 11, 60 Hz screen
– WebGPU turned on with localStorage IS_WEB_GPU = “1”; plain TypeScript
built with Vite 7.3.7; community license
Minimal reproduction:
main.ts turns on WebGPU, counts texture views, then loads chart.ts. A view
counts as alive until the browser has collected it. chart.ts is loaded with a
dynamic import because SciChart reads IS_WEB_GPU only once, as it loads.
index.html:
<!doctype html>
main.ts:
// Makes this file a module, so it can use await at the top level.
export {};
localStorage.setItem(‘IS_WEB_GPU’, ‘1’);
let made = 0;
let freed = 0;
const registry = new FinalizationRegistry(() => {
freed += 1;
});
const createView = GPUTexture.prototype.createView;
GPUTexture.prototype.createView = function (
this: GPUTexture,
…args: Parameters<GPUTexture[‘createView’]>
) {
const view = createView.apply(this, args);
made += 1;
registry.register(view, null);
return view;
};
setInterval(() => {
console.log(texture views made ${made}, alive ${made - freed});
}, 60_000);
await import(‘./chart’);
chart.ts:
import {
EAutoRange,
FastLineRenderableSeries,
NumberRange,
NumericAxis,
SciChartSurface,
XyDataSeries
} from ‘scichart’;
import sciChartWasmUrl from ‘scichart/_wasm/scichart.wasm?url’;
SciChartSurface.UseCommunityLicense();
SciChartSurface.configure({ wasmUrl: sciChartWasmUrl });
const { sciChartSurface, wasmContext } = await SciChartSurface.create(‘chart’);
const timeAxis = new NumericAxis(wasmContext, {
autoRange: EAutoRange.Never
});
sciChartSurface.xAxes.add(timeAxis);
sciChartSurface.yAxes.add(
new NumericAxis(wasmContext, {
autoRange: EAutoRange.Never,
visibleRange: new NumberRange(-1.5, 1.5)
})
);
const series = new XyDataSeries(wasmContext, {
fifoCapacity: 2000,
isSorted: true
});
sciChartSurface.renderableSeries.add(
new FastLineRenderableSeries(wasmContext, { dataSeries: series })
);
// Adds 4 points per frame and scrolls the time axis to the newest point.
let nextX = 0;
const frame = (): void => {
const xValues = [nextX, nextX + 1, nextX + 2, nextX + 3];
series.appendRange(
xValues,
xValues.map((x) => Math.sin(x / 50))
);
nextX += 4;
timeAxis.visibleRange = new NumberRange(nextX – 2000, nextX);
requestAnimationFrame(frame);
};
requestAnimationFrame(frame);
Steps to reproduce:
Build the page with Vite (with another bundler, set wasmUrl however it serves
files), open it on Windows with WebGPU, and watch the console for 5 minutes.
Expected:
Live texture views and page memory stay roughly level.
Actual:
Live views grow every minute and never come down (6.0.18):
texture views made 10765, alive 7188
texture views made 21568, alive 15796
texture views made 32368, alive 21978
texture views made 43168, alive 30658
texture views made 53965, alive 37265
- Page memory grew from 182 MB to 260 MB over those 5 minutes.
- Garbage collection is running: in the third minute it freed about 1,000
command encoders and 5,100 bind groups while live views still went up by
about 6,200. - Only texture views grow. Textures, buffers and pipelines stay level.
- The rate is the same with a 3 x 3 grid of charts, and with
disableEngineLoop: true plus TSRRequestDraw() each frame. - Not tested: whether growth stops when updates stop, or after the chart is
deleted.
Questions:
1. Can you reproduce this, and is a fix planned?
2. Is WebGPU on Windows (with IS_WEB_GPU set) a supported setup?
3. We are switching to WebGL until a fix is out. Is there anything we should
know about that, or a way to keep using WebGPU without the leak?
Thanks,
Alex
- Alex Farrell asked 2 weeks ago
- last active 1 week ago
Hello,
We have a reproducible access violation in the VisualXccelerator line path. It happens with an unresampled line (ResamplingMode.None, a logarithmic X axis, or unsorted X) once the series holds k Ć 524,288 + 1, 2 or 3 points.
The simplest code to reproduce is:
using System.Windows;
using System.Windows.Threading;
using SciChart.Charting;
using SciChart.Charting.Model.DataSeries;
using SciChart.Charting.Visuals;
using SciChart.Charting.Visuals.Axes;
using SciChart.Charting.Visuals.RenderableSeries;
using SciChart.Data.Numerics;
namespace MinimalRepro;
///
/// AccessViolationException (0xC0000005) in SCRTXyColorVertexProcessor.ProcessXyColorVertex,
/// inside VXccelEngine2D.dll (the VisualXccelerator hardware-accelerated line path).
///
/// Root cause, from the x64 disassembly (offsets are RVAs into VXccelEngine2D.dll):
/// 9.1.0.29201 (latest on NuGet): ProcessXyColorVertex +0xA13C0, viewport-clamp helper +0xA0860.
/// 8.6.0.28199 (the customer’s build): ProcessXyColorVertex +0x9FA10, viewport-clamp helper +0x9EE60.
/// The engine draws an unresampled series in chunks of 524,288 points (an 8 MB vertex buffer at
/// 16 bytes per XyColorVertex). When a chunk holds 3 points or fewer, the clamp helper copies the
/// points into 3-element scratch vectors and repoints X/Y at that scratch, but the caller still
/// indexes with the chunk’s ABSOLUTE start offset (lea rdx,[r12+rax*8], rax = m_iStartOffset).
/// So for a tail chunk that begins at k x 524,288 it reads k x 4 MB past a 24-byte block. The fault
/// lands in the first transform to read the point: the log transform (9.1 +0x4650, 8.6 +0x4890) or
/// the linear one (8.6 +0x82E72). The fix is to index the scratch from 0.
///
/// This window grows one FastLine through k x 524,288 + 1, + 2 and + 3 points for k = 1 to 8,
/// drawing each count a few times. Whether a read faults depends on what is mapped at that address,
/// so most runs crash within seconds and an occasional run draws garbage instead. Any unresampled
/// series triggers it: ResamplingMode.None, a LogarithmicNumericAxis, or unsorted X. The fault is in
/// CPU-side code, so it is not GPU-specific (reproduced on several machines).
///
public static class Program
{
const int ChunkPoints = 524_288;
const int FramesPerCount = 3;
[STAThread]
public static void Main()
{
VisualXcceleratorEngine.IsEnabledByDefault = true;
var series = new XyDataSeries<double, double>();
var surface = new SciChartSurface
{
XAxis = new NumericAxis { AutoRange = AutoRange.Always },
YAxis = new NumericAxis { AutoRange = AutoRange.Always },
};
surface.RenderableSeries.Add(new FastLineRenderableSeries { DataSeries = series, ResamplingMode = ResamplingMode.None });
var window = new Window { Width = 1000, Height = 600, Content = surface };
int[] counts = [.. Enumerable.Range(1, 8).SelectMany(k => new[] { 1, 2, 3 }.Select(tail => k * ChunkPoints + tail))];
int next = 0;
int ticks = 0;
var timer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(250) };
timer.Tick += (_, ) =>
{
if (ticks++ % FramesPerCount != 0)
{
surface.InvalidateElement();
return;
}
if (next == counts.Length)
{
timer.Stop();
window.Title = $”No fault this run at any count up to {counts[^1]:N0}: every read hit mapped memory. Run it again.”;
return;
}
GrowTo(series, counts[next++]);
window.Title = $”{series.Count:N0} points = {series.Count / ChunkPoints} x {ChunkPoints:N0} + {series.Count % ChunkPoints}”;
};
window.Loaded += (, _) => timer.Start();
new Application().Run(window);
}
static void GrowTo(XyDataSeries<double, double> series, int count)
{
int from = series.Count;
var x = new double[count – from];
var y = new double[count – from];
for (int i = 0; i < x.Length; i++)
{
x[i] = from + i;
y[i] = Math.Sin((from + i) / 50_000.0);
}
series.Append(x, y);
}
}
The window title shows the point count. The process exits with 0xC0000005 within seconds, and the Windows Application log records an AccessViolationException in SCRTXyColorVertexProcessor.ProcessXyColorVertex. The crash depends on what is mapped at the stray address, so it may need a few runs.
- Denise Rogers asked 1 month ago
- last active 2 weeks ago
Environment
C# WPF with MVVM, .NET 8
Visual Studio 2022, Version 17.14.40
SciChart: 9.1.0.29201
SciChart.Wpf.UI: 4.0.271
FastLineRenderableSeries with real-time data updates every 1 second
Fixed X-axis; Y-axis values change with each data update.
Issue Description
I am using VerticalLineAnnotation as a vertical slicer with four commands: UnselectedCommand, SelectedCommand, DragStartedCommand, and DragEndedCommand.
The issue occurs frequently. DragStartedCommand is called when the user starts dragging the slicer, but DragEndedCommand is sometimes not called when the user releases the mouse button.
Real-time data updates continue during dragging. The issue occurs whether the mouse is released inside or outside the chart.
My application uses the slicer’s X1 value to update a UI table with the corresponding X value and latest Y values. When DragEndedCommand is not called, the table can become inconsistent with the slicer’s actual position.
Expected Behaviour
DragEndedCommand should be called when dragging finishes so that the application can process the final X1 value.
Questions
Why might DragEndedCommand not be called even when DragStartedCommand is called?
Could real-time data updates or a known issue in this SciChart version cause this behaviour?
What is the recommended way to reliably detect the end of dragging and obtain the final X1 value?
Attachments
- Code for creating the vertical slicer and handling drag events.
- Logs showing the event sequence.
- Screenshot of the issue.
Any help identifying the cause or suggesting a workaround would be appreciated. Thank you!
- Priyanka Asawa asked 1 month ago
- last active 2 weeks ago
i have a FastBubbleRenderableSeries, im using pointMarkers for different shapes, i also have a custom Palette provider for different point color per series, im using overridePointMarkerArgb function and returning {fill, stroke} as mentioned in the docs but somehow this is overriding the stroke applied in pointMarkers and not applying the stroke from here
the return statement of {fill, stroke} in overridePointMarkerArgb is messing up the stroke applied at the pointMarkers
how can i apply stroke using custompalette provider , here is my sample code for the class :
import {
EFillPaletteMode,
EPaletteProviderType,
EStrokePaletteMode,
parseColorToUIntArgb,
chartBuilder,
EBaseType,
} from “scichart”;
class CustomPaletteProvider {
fillPaletteMode = EFillPaletteMode.SOLID;
strokePaletteMode = EStrokePaletteMode.SOLID;
- constructor(colorMap, defaultColor, opacity = 1) {
- this.colorMap = colorMap;
- this.defaultColor = defaultColor;
- this.opacity = opacity;
- this.defaultColorArgb = defaultColor
- ? parseColorToUIntArgb(defaultColor)
- undefined;
this.selectedStrokeArgb = parseColorToUIntArgb(“#555555”);
}
applyOpacity(argb, opacity) {
const alpha = Math.round(opacity * 255) & 0xff;
return ((argb & 0x00ffffff) | (alpha << 24)) >>> 0;
}
resolveBaseArgb(index) {
if (this.colorMap === undefined) {
return this.defaultColorArgb;
}
const color = this.colorMap[index];
return color ? parseColorToUIntArgb(color) : undefined;
}
overrideFillArgb(xValue, yValue, index, opacity, metadata) {
const baseArgb = this.resolveBaseArgb(index);
if (baseArgb === undefined) return undefined;
const isSelected = !!metadata?.isSelected;
const resolvedOpacity = isSelected ? 1 : this.opacity;
return this.applyOpacity(baseArgb, resolvedOpacity);
}
overrideStrokeArgb(xValue, yValue, index, opacity, metadata) {
const isSelected = !!metadata?.isSelected;
const resolvedOpacity = isSelected ? 1 : this.opacity;
if (isSelected) {
return this.applyOpacity(this.selectedStrokeArgb, resolvedOpacity);
}
const baseArgb = this.resolveBaseArgb(index);
if (baseArgb === undefined) return undefined;
return this.applyOpacity(baseArgb, resolvedOpacity);
}
overridePointMarkerArgb(xValue, yValue, index, opacity, metadata) {
const isSelected = !!metadata?.isSelected;
const resolvedOpacity = isSelected ? 1 : this.opacity;
const baseArgb = this.resolveBaseArgb(index);
if (baseArgb === undefined) return undefined;
- const fillArgb = this.applyOpacity(baseArgb, resolvedOpacity);
- const strokeArgb = isSelected
- ? this.applyOpacity(this.selectedStrokeArgb, resolvedOpacity)
- fillArgb;
const filler = parseColorToUIntArgb(“#ff0000”);
if (isSelected) {
return { fill: filler, stroke: strokeArgb };
} else return { fill: fillArgb, stroke: strokeArgb };
}
onAttached(parentSeries) {
this.parentSeries = parentSeries;
}
onDetached() {
this.parentSeries = undefined;
}
getColor(index) {
if (this.colorMap === undefined) {
return this.defaultColor;
}
return this.colorMap[index];
}
toJSON() {
return {
type: EPaletteProviderType.Custom,
customType: “CustomPaletteProvider”,
options: {
colorMap: this.colorMap,
defaultColor: this.defaultColorArgb,
},
};
}
}
chartBuilder.registerType(
EBaseType.PaletteProvider,
“CustomPaletteProvider”,
(options) =>
new CustomPaletteProvider(options.colorMap, options.defaultColorArgb),
);
export default CustomPaletteProvider;
- Subith Sivaraman asked 1 month ago
- last active 1 month ago
Hello, I am having an issue where I am having trouble resizing the Scichart Surface while using annotations. The goal of these annotations are to provide a goalpost for the live chart to reach before it moves on to subsequent steps in the process. The problem is that the annotations do not contribute to the DataRange which I use in all my resize behaviors. My question is simple: Is there a way to allow ECoordinateMode.DataValue configured annotations to contribute to DataRange or is there a preferred way to have them contribute to zoom behavior on the chart?
Currently the only way I can see implementing it is overriding ZoomExtends behavior on the chart, calling the base behavior then manually iterating through all annotations to extend the chart further. Then, I would need to refresh the zoom manually every time dragging occurs on the annotation.
Current Relevant Code Reference:
VB.NET ViewModel Code:
For Each rStep In recipe.RecipeSteps
Dim shadowModel As UALayerController = rStep.Models.OfType(Of UALayerController).Where(Function(x) x.IsOn).FirstOrDefault()
If (shadowModel IsNot Nothing) Then
Dim mData As ThicknessMetadata = ModelMetadata.First(Function(x) shadowModel.FriendlyName = x.ThicknessModel.FriendlyName)
Dim horzAnno As New HorizontalLineAnnotationViewModel
horzAnno.LabelValue = recipeThickness + shadowModel.LayerThickness
horzAnno.LabelPlacement = LabelPlacement.Axis
horzAnno.Y1 = shadowModel.LayerThickness
horzAnno.StrokeDashArray = New DoubleCollection({2, 4, 2})
horzAnno.Stroke = mData.Color
horzAnno.StrokeThickness = 1
horzAnno.ShowLabel = False
horzAnno.AnnotationCanvas = AnnotationCanvas.BelowChart
horzAnno.AnnotationLabels = New ObservableCollection(Of AnnotationLabel)({New AnnotationLabel With {.Text = $”Layer:{layerSteps}{vbCrLf}({shadowModel.LayerThickness} nm)”, .LabelPlacement = LabelPlacement.Left, .Background = Brushes.Transparent}})
horzAnno.Foreground = Brushes.Black
Annotations.Add(horzAnno)
recipeThickness = recipeThickness + shadowModel.LayerThickness
layerSteps = layerSteps + 1
End If
Next
Chart Xaml:
Please advise.
Thanks,
Nicholas Louks
- Nicholas Louks asked 2 months ago
- last active 1 month ago
TypeError: Cannot read properties of undefined (reading 'alignment') in AxisTitleRenderer.layout for an axis with isVisible === false
Version: scichart 5.2.69 (JS/TS, 2D, WebAssembly)
Environment: Chromium (Electron-based desktop container and browser), Windows 10/11, multi-monitor with mixed display scaling
Severity: Uncaught exception from the internal render loop; the chart stops rendering
Summary
An axis that has an axisTitle and is set to isVisible = false will throw during the layout pass if its AxisTitleRenderer cache has been reset in the meantime. The renderer is left with a populated text but an undefined textStyle, and AxisTitleRenderer.layout dereferences textStyle while only guarding on text.
Stack trace
Captured in production (minified), originating from the WASM draw loop rather than from any application call:
TypeError: Cannot read properties of undefined (reading 'alignment')
at n.layout (AxisTitleRenderer.layout)
at a (AxisLayoutHelpers.layoutAxisParts)
at Array.forEach
at e.layoutAxesFromRightToLeft (BaseAxisLayoutStrategy)
at i.layoutAxes
at e.layoutChart (LayoutManager)
at e.render (SciChartRenderer)
at H.doDrawingLoop
at H.onRenderSurfaceDraw
at e.onRenderTimeElapsed
at Object.Draw
at methodCaller<(std::string) => void>
at scichart2d.wasm:wasm-function[1552]
...
Root cause analysis
Three behaviours combine. All line numbers are from the unminified CommonJS build of 5.2.69.
1. AxisTitleRenderer.layout guards on text but dereferences textStyle
Charting/Visuals/Axis/AxisTitleRenderer.js:108
js
AxisTitleRenderer.prototype.layout = function (rect) {
if (!this.text) {
this.viewRectProperty = rect;
return;
}
var alignment = convertLabelAlignmentToTextAlignment(this.textStyle.alignment); // throws
this.viewRectProperty = this.getViewRect(this.text, rect, this.titlePosition, alignment);
};
textStyle is assigned only inside measure() (AxisTitleRenderer.js:33).
2. resetCache() clears textStyle but keeps text
Charting/Services/TitleRenderer.js:92
js
TitleRendererBase.prototype.resetCache = function () {
this.invalidateCache();
this.textStyle = undefined;
this.originalTextStyle = undefined;
};
It leaves this.text intact, so the guard in layout() no longer protects the textStyle access. resetCache() is reachable from:
– TitleRendererBase.onDpiChanged (TitleRenderer.js:102), subscribed to the global DpiHelper.dpiChanged, which is raised from a window.resize listener whenever devicePixelRatio changes (Charting/Visuals/TextureManager/DpiHelper.js:46)
– TitleRendererBase.delete (TitleRenderer.js:86)
3. Invisible axes are laid out but their titles are never re-measured
AxisBase2D.measure (Charting/Visuals/Axis/AxisBase2D.js:704) skips the title measure entirely when the axis is hidden:
js
AxisBase2D.prototype.measure = function () {
if (this.isVisible) {
this.axisRenderer.measure(...);
this.axisTitleRenderer.measure(this.axisTitle, this.dpiAdjustedAxisTitleStyle, this.axisAlignment);
} else {
this.axisRenderer.desiredHeight = 0;
...
}
};
but LayoutManager.groupAxes (Charting/LayoutManager/LayoutManager.js:275) destructures isVisible and then never uses it:
js
var groupAxes = function (axes) {
axes.forEach(function (axis) {
var axisAlignment = axis.axisAlignment, isInnerAxis = axis.isInnerAxis, isVisible = axis.isVisible;
// ^ unused
if (isInnerAxis) { switch (axisAlignment) { ... } }
else { switch (axisAlignment) { ... } }
});
};
So hidden axes are still pushed into the layout strategies and receive layout() via layoutAxesFrom* ā AxisLayoutHelpers.layoutAxisParts (AxisLayoutHelpers.js:19) ā axisTitleRenderer.layout(...). Within a single layoutChart pass the axis is passed to axis.measure() (e.g. LeftAlignedOuterAxisLayoutStrategy.js:39), but that call is a no-op for the title, so textStyle is never restored before layout() runs.
Resulting sequence
- Axis with a non-empty
axisTitleis visible; a render pass cachestextandtextStyle. - Application sets
axis.isVisible = false. devicePixelRatiochanges ā user drags the window to a monitor with different scaling, or zooms the browser ā raisingDpiHelper.dpiChangedand wipingtextStyleon every axis title renderer in the document.- Next draw:
measure()skips the title (axis hidden),layout()runs anyway,this.textStyle.alignmentthrows.
Steps 2 and 3 are interchangeable; any render pass in which the axis is hidden and the cache has been reset will throw.
Reproduction
“`ts
import { DpiHelper, NumericAxis, SciChartSurface } from ‘scichart’;
const { sciChartSurface, wasmContext } = await SciChartSurface.create(‘chart’);
sciChartSurface.xAxes.add(new NumericAxis(wasmContext, { axisTitle: ‘X’ }));
const yAxis = new NumericAxis(wasmContext, { axisTitle: ‘Y’ });
sciChartSurface.yAxes.add(yAxis);
// let one render pass populate the title renderer cache
await new Promise(resolve => sciChartSurface.rendered.subscribe(() => resolve()));
yAxis.isVisible = false;
// equivalent to moving the window to a display with different scaling, or zooming
DpiHelper.dpiChanged.raiseEvent({ newValue: 2, oldValue: 1 });
sciChartSurface.invalidateElement();
// TypeError: Cannot read properties of undefined (reading ‘alignment’)
“`
The same crash is reachable via delete() ā if a queued draw-loop iteration executes against a surface that has already been deleted, AxisTitleRenderer.delete() ā resetCache() produces identical state.
Expected behaviour
Hiding an axis, changing display scaling, or disposing a surface should not throw from the internal layout pass. A hidden axis should contribute no layout at all.
Actual behaviour
Uncaught TypeError from doDrawingLoop, outside any application stack frame, after which the surface stops rendering.
Suggested fixes
Any one of these resolves it; the first is the smallest and most defensive:
AxisTitleRenderer.layoutā extend the guard:if (!this.text || !this.textStyle) { ... return; }.TitleRendererBase.resetCacheā also cleartext(andpreviousText), so the cache invariant “textset āŗtextStyleset” holds. This forces a correct re-measure rather than leaving half-reset state.LayoutManager.groupAxesā use theisVisiblevalue it already reads, and skip hidden axes, someasure()andlayout()agree on which axes participate. This also avoids pointless layout work for hidden axes.
Note that (3) alone changes layout participation and may have wider effects; (1) and (2) are behaviour-preserving.
Workaround currently in use
When hiding an axis we reach into the title renderer and clear its cached text and previousText, so layout() takes the early-return branch and the axis is fully re-measured when shown again:
“`ts
export function setAxisVisibility(axis: AxisBase2D, isVisible: boolean) {
axis.isVisible = isVisible;
if (!isVisible) {
const title = axis.axisTitleRenderer as unknown as {
previousText?: string | string[];
text?: string | string[];
};
title.text = ”;
title.previousText = undefined;
}
}
“`
This relies on protected internals, so we’d prefer a fix upstream.
- Mark Barlow asked 3 months ago
- last active 2 months ago
Hi scicharts team,
is it possible to rotate the data labels, i checked the API docs and it was missing from DataLabelProvider’s properties
if the feature is currently not available is it possible to create a custom class for it ? by extending respective chart type like StackedColumnSeriesDataLabelProvider, or any other label providers
please let us know the approach to achieve rotation in DataLabels
- Subith Sivaraman asked 4 months ago
- last active 4 months ago
Hello scicharts team,
is it possible to apply jitter in XyScatterRenderableSeries,
Our chart data is coming from the Backend,
do we have to change the underlying data from backend to apply jitter ? our concern is that changing the data will also affect tooltips and other things
we just want a visual jitter on x or y by some value on scatter chart similar to what spotfire has to offer.
kindly let us know the approach we should take
Regards.
- Subith Sivaraman asked 4 months ago
- last active 4 months ago
Hi,
We use FastLineRenderableSeriesForMvvm to plot live line graph. Our graph engine receives approximately 1,000 X/Y data points per second because we work with high-speed data-rate machines. These points are rendered at a 10 Hz refresh rate.
Recently, we upgraded SciChart from v6.x to v9.x, and since then we have started encountering an issue (AccessViolationAcception)after the live graph runs for about 11ā12 minutes, which corresponds to approximately 720,000 total data points being plotted.
We are using XyDataSeries<float, float> as the data source. Please refer to the attached screenshot for details.
Below is the XAML code:
>
–>
- Naveen.Kumar@ametek.com asked 5 months ago
- last active 4 months ago
Hi Scichart team,
Wondering if by any chance there is a plan to add Volume Footprint Chart type in the future? My team would be very interested in it.
What would be your recommendation if I tried to create a custom Volume Footprint chart in the current version of SciChart? I would probably have to combine candlestick, rectangle and some other series? But I’m wondering if Scichart currently has all components necessary to create a custom chart like this?
Thank you,
Timo
- Timo Betina asked 5 months ago
- last active 5 months ago
Hi scichart support team,
When we reduced the SciChartLegend text size, we noticed the legend text started to appear top-aligned (the result looks a bit āoffā). We would like to have the text vertically centered instead.
We attempted several configuration options, including setting VerticalContentAlignment to Center and VerticalAlignment to Center on SciChartLegend, as well as setting VerticalAlignment to Center on a TextBlock in the parent container; however, the text still remains top-aligned visually.
Could you please advise on the following?
1. Is the vertical alignment of SciChartLegend text configurable in the current version?
2. If yes, what is the recommended approach (e.g., template replacement, style keys, or dedicated properties)?
3. If not, do you have any planned timeline for a fix and/or recommended workaround?
Additionally, we are trying to locate the SciChart v9 theme separately. If we can obtain the theme files, we believe we can identify where the legend text alignment is controlled and apply the appropriate configuration for this issue. Could you please share where we can get the SciChart v9 theme (documentation link or the exact resource path within the package)?
Thank you in advance for your support.
Best regards,
- Mikuro Yamamoto asked 5 months ago
- last active 2 weeks ago
Hello scichart support team,
The DataPointWidth property in the StackedColumn chart component behaves unexpectedly.
- Single data (1 point),
DataPointWidth = 0.5 - Single data (1 point),
DataPointWidth = 1.0 - Multi data (3 points),
DataPointWidth = 0.5 -
Multi data (3 points),
DataPointWidth = 1.0 -
Single-point mode (1 point): the bar width looks the same for
DataPointWidth = 0.5and1.0(the0.5setting is not reflected visually). - Multi-point mode (3 points):
DataPointWidth = 0.5is applied correctly (bars are narrower than with1.0).
We confirmed that this issue does not occur in v5; DataPointWidth was applied correctly for the same scenario.
We expect DataPointWidth to be applied consistently regardless of whether the chart renders 1 point or multiple points.
Could you please confirm whether this is a known limitation/bug in Single-point mode? If it is a bug, we would appreciate a fix; if it is intended, please advise the correct configuration/workaround.
Thank you.
- Mikuro Yamamoto asked 5 months ago
- last active 5 months ago
Hi SciChart Support Team,
We are currently working on a WPF application using SciChart, where one of our chart configurations includes a single X-axis and multiple Y-axes. Our goal is to implement a single SciChartScrollbar that controls the scrolling for all Y-Axes simultaneously.
According to your documentation, a scrollbar can only be assigned to a single axis via the AxisId property. Since it is not natively possible to bind a single scrollbar to multiple axes, could you please guide me on the best practices or a workaround to achieve this?
Current Attempt & Performance Issue:
We are currently trying to synchronize the axes by binding the VisibleRange properties together (or using the VisibleRangeChanged event). However, because we are dealing with very large datasets, this approach is causing noticeable performance lags and a choppy visual experience during scrolling.
Specifically:
Is there a recommended, high-performance way to synchronize the VisibleRange of all Y-Axes when the scrollbar moves?
Do you have a code snippet or a knowledge-base example demonstrating a single scrollbar driving multiple Y-Axes efficiently under heavy data load?
Thank you for your time and assistance
- Sepideh Eidi asked 5 months ago
- last active 5 months ago
Hi scichart team,
I have a stacked Bar chart rendered using StackColumnRenderableSeries, i needed to know if i can sort Segments per category based on its value
For example
1st category on X axis – Cat1 (10), Cat2(30), Cat2(34),
1st category on X axis – Cat3 (11), Cat2(23), Cat1(40),
1st category on X axis – Cat2 (14), Cat3(15), Cat1(16)
i have attached an image for reference ,
architecturally StackColumnRenderableSeries doesnt natively support this feature since we have the whole yValues array added oneshot per series
Please let us know at the earliest if its feasible or any workaround for this would be very helpful,
Thanks
Regards
- Subith Sivaraman asked 5 months ago
- last active 5 months ago
Hi SciChart team,
i need to apply custom fonts to my Axis Tick labels, im able to apply it to other text elements where useNativeText was set to false, but for label style i dont think its available,
Is it a bug or is there any solution to apply custom fonts to axis labels ?
Thanks
- Rahul Kathayat asked 5 months ago
- last active 5 months ago
Hi SciChart team,
We have a requirement in which we need to create Hierarchical X axes labels just like the images attached in this query, also can we have any click interactions with the axes labels?
Is this possible with scichart or is there any work around for it kindly do let us know.
- Subith Sivaraman asked 6 months ago
- last active 5 months ago
Hello,
We created a chart to measure streaks (basically a period of time when someone is meeting their goal) and we are using an overview below that chart. Whenever we adjust the duration of the streaks that are visible the data on the chart is cleared and recreated. When we recreate the overview it doesn’t respond to zoom changes. The overview will have the correct data points on it but if you drag the left of the right it doesn’t change the zoom of the chart. The overview will not display the correct data points unless we call overview.delete(). Is there a way to allow the user to change the data on the chart and have the overview keep working? I’ve attached a screenshot showing what’s happening in case I didn’t explain it clearly.
Thank you,
Tim
- Tim Stephansen asked 6 months ago
- last active 6 months ago
Hi SciChart team,
We are using FastHistoBarRenderableSeries to render per-candle volume profile histograms in a trading application.
The series works well for the bars themselves, but we need to draw a 1px outline rectangle around the full column of each bar group (from the lowest to the highest price level, spanning the full bid+ask width).
The problem is that FastHistoBarRenderableSeries does not expose its internal bar geometry ā specifically the pixel coordinates of xCenter, halfCol (column half-width), yTop, and yBot for each rendered bar. Without these, any overlay CustomRenderableSeries we add to draw the border cannot reliably align with the bars, because it has to reverse-engineer the same width formula from DataPointWidth and MaxBarHeight, which does not produce a pixel-perfect match.
We would like to request one of the following (in order of preference):
-
A callback or event such as OnBarGeometryCalculated(int dataIndex, Rect barBoundsPixels) fired during InternalDraw, allowing external code to receive the exact pixel rect for each rendered bar group.
-
A public read-only property DataPointWidthPixels (or equivalent) that returns the computed column width in pixels for the current viewport, updated after each render pass.
-
Official documentation or a code example showing how to draw a pixel-accurate overlay on top of FastHistoBarRenderableSeries bars.
Our use case is a per-candle market profile / footprint chart where the column border is a key visual element for traders. Performance is critical ā we are targeting 60fps with 200+ candles visible.
Thank you for considering this request. Happy to provide more details or a reproducible example if helpful.
- Marcello Bugnoli asked 7 months ago
- last active 4 months ago
Hi,
We inherited from VerticalSliceModifier and then add a VerticalLineAnnotation, but the ExportToFile failed.What is the reason for this, and how can one correctly inherit from VerticalSliceModifier? The code below can simply reproduce this error. My debugging results show that OnAnnotationCollectionChanged is executed when generating the image, and there are 2 Annotations in the sender.
public class TestModfiy: VerticalSliceModifier
{
public override void OnAttached()
{
base.OnAttached();
}
protected override void OnAnnotationCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
{
base.OnAnnotationCollectionChanged(sender, args);
}
public override void OnDetached()
{
base.OnDetached();
}
}
The Exception:
ArgumentOutOfRangeException: ē“¢å¼č¶ åŗčå“ćåæ é”»äøŗéč“å¼å¹¶å°äŗéå大å°ć
åę°å: index
Stack Trace:
åØ System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
åØ System.Collections.Generic.List1.get_Item(Int32 index)1 ard)
åØ SciChart.Charting.Visuals.SciChartSurface.CreateCloneOfSurfaceInMemory(Size newSize)
åØ SciChart.Charting.Visuals.SciChartSurfaceBase.mro(ExportType arb, Boolean arc, Nullable
åØ SciChart.Charting.Visuals.SciChartSurfaceBase.ExportToFileInternal(String fileName, ExportType exportType, Boolean useXamlRenderSurface, Nullable1 size)1 size)
åØ SciChart.Charting.Visuals.SciChartSurfaceBase.ExportToFile(String fileName, ExportType exportType, Boolean useXamlRenderSurface)
åØ SciChart.Examples.ExternalDependencies.Controls.Toolbar2D.CustomModifiers.CustomExportModifier.Export(String filter, Boolean useXaml, Nullable
åØ SciChart.Examples.ExternalDependencies.Controls.Toolbar2D.CustomModifiers.CustomExportModifier.<.ctor>b__16_2()
åØ MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
åØ System.Windows.Controls.Primitives.ButtonBase.OnClick()
åØ System.Windows.Controls.Button.OnClick()
åØ System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
åØ System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
åØ System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
åØ System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
åØ System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
åØ System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
åØ System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
åØ System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
åØ System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
åØ System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
åØ System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
åØ System.Windows.Input.InputManager.ProcessStagingArea()
åØ System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
åØ System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
åØ System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
åØ System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
åØ System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
åØ MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
åØ MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
åØ System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
åØ System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
- wei zhao asked 7 months ago
- last active 7 months ago
Hi scichart team,
i have LineAnnotations in my chart which overlaps with X and Y axis labels when i zoom and pan around the chart, can i make sure its visible range is similar to that of a series it should get clipped around the ends instead of overlapping on Axes
Thanks, regards
- Rahul Kathayat asked 7 months ago
- last active 7 months ago
Hello SciChart team,
I have a question and a feature request regarding BoxAnnotation and DrawingTools in the JavaScript version.
Currently, it is not possible to apply a corner radius to BoxAnnotation in SciChart JS, while this feature exists in other platforms such as WPF. Would it be possible to support this in the JavaScript version as well?
I previously used CustomAnnotation to achieve this kind of customization. However, due to performance constraints, I had to stop using it. Since CustomAnnotation relies on SVG elements added to the DOM, it caused significant CPU usage in my case. My application requires rendering multiple annotations with real-time updates, and this led to noticeable performance degradation, including UI lag and occasional freezes.
Because of this, I migrated to BoxAnnotation for better performance, but I do miss the ability to customize things like rounded corners.
Regarding DrawingTools, since they are not available in the JavaScript version, having this feature would be extremely helpful. My application is focused on trading, where drawing tools are heavily used. I have personally implemented some custom drawing features, but having a standardized, built-in solution would greatly simplify development and improve consistency.
Thanks in advance for your support!
- Julio Soares asked 7 months ago
- last active 7 months ago
Hi scichart team,
Im unable to add a per point coloring to UniformHeatMap series using paletteProvider, it just doesnt seem to work
Also im using DataPointSelectionModifier and im only able to select one point at a time, unable to select multiple points onSelectionChanged and also drag selection is not working for multi select as well.
My goal is to select and highlight multiple cells/tiles in a UniformHeatMap series
please respond with a solution
Thanks
- Rahul Kathayat asked 8 months ago
- last active 7 months ago
Hi SciChart team,
Is it possible to have multiple overview slider chart each for one axis
for example a vertical slider that controls the visible range of one of the Y axis and one slider just for X axis ??
I know that we have a scroll/drag on axes labels to zoom in and out but can we specifically do it with overview Slider ?
- Rahul Kathayat asked 8 months ago
- last active 7 months ago
Expected: While panning over x-axis, column width stays visually constant and empty data ranges remain visually empty.
Actual: When the visible x-axis range contains little or no data, stacked columns grow very wide to fill the available space.
Any ideas how to disable auto-stretch of columns?
- PaweÅ GleÅ asked 8 months ago
- last active 8 months ago
Hi scicharts team,
For our application we have a point and series selection feature for a Line Chart but i have noticed that When i select a point and highlight it, Series selection changed function also gets triggered even though i didnt want to select the series.
Is there any work around for this that can suppress the sereis selection when clicking data point ?
- Rahul Kathayat asked 8 months ago
- last active 8 months ago
3D tooltips seem to return incorrect Z axis values when points / regions are at the edge of the surface. Errors are also logged to the console.
This issue is visible on the official example available at https://www.scichart.com/documentation/js/v5/3d-charts/chart-modifier-3d-api/tooltip-modifier-3d/
- Mark Barlow asked 8 months ago
- last active 8 months ago
Iām seeing a delay the first time I add a chart to scichart:SciChartSurface. Subsequent loads are much faster. It looks like the initial initialization is taking timeāwhat can I do to reduce or eliminate this first-load delay?
where ChartDocumentControl
- Karthikeyan Rajendran asked 8 months ago
- last active 8 months ago
I’m trying to find a way to apply a colour gradient to an existing FastLineRenderableSeries in the app. We want the colours in the gradient to align to specific y-axis values (see attached image)
- Marcela Guerra asked 9 months ago
- last active 8 months ago
3D Surface charts accept a MeshColorPalette provided by a GradientColorPalette or SolidColorPalette but both of these seem to be driven by the Y values of the chart itself.
Is there a way to configure a palette based on another series / set of data points? If no such palette exists can an example be provided of how to implement one?
- Mark Barlow asked 9 months ago
- last active 8 months ago
Why is there such a huge difference between the 3D charts available in Javascript versus WPF?
If the charts are meant to use the same engines behind the scenes, why are the available charts not equivalent?
- Mark Barlow asked 9 months ago
- last active 8 months ago
In SciChart JS there doesn’t appear to be a Javascript version of NonUniformGridDataSeries3D.
As this exists in WPF, can the logic just be ported across or made publicly available?
- Mark Barlow asked 9 months ago
- last active 8 months ago
How to change background and text color of the boxes with the values appearing when presenting tooltip?
Currently the box is green and text color is white as shown in the picture.
- PaweÅ GleÅ asked 9 months ago
- last active 8 months ago
Hi scichart team,
is there any way i can render an overview chart with Stacked column chart ?
im getting the following error
Error: dataSeries property is not supported for BaseStackedCollection
at StackedColumnCollection2.get
i tried rendering some other type of series in overview but does not seem to work with stacked columns
- Rahul Kathayat asked 9 months ago
- last active 9 months ago
Hello!
SciChart JS v3.
> sciChartSurface.renderableSeries.get(1).stroke = scoreColor;
where series is FastLineRenderableSeries.
Legend color box has still initial color.
Should we fire color sync manually somehow?
Legend placed in external container.
Many thanks
- Manfred Wieser asked 9 months ago
- last active 9 months ago
Hello SciChart Team,
Iām experiencing an unexpected behavior when using a BoxAnnotation with a LogarithmicAxis on the Y axis.
When I drag the annotation by its body, it does move across the chart as expected. However, at the same time, the annotation also changes its size (it increases or decreases while being dragged).
This behavior does not occur when using a NumericAxis. With NumericAxis, dragging the body moves the annotation without altering its dimensions.
I Use the official BoxAnnotation example as reference:
https://www.scichart.com/documentation/js/v5/2d-charts/annotations-api/box-annotation/
Change only the Y axis from NumericAxis to LogarithmicAxis.
Drag the annotation by its body.
Observe that while the annotation moves, its height changes simultaneously.
Here is a minimal CodePen demonstrating the issue:
https://codepen.io/gaulions/pen/jErgZmL
The only changes from the official example are:
Switching the Y axis to LogarithmicAxis
Adding isEditable: true
Could you please confirm whether this is the expected behavior when using a LogarithmicAxis, or if this might be a bug?
Thank you.
- Julio Soares asked 10 months ago
- last active 9 months ago
Hello SciCharts team,
I would like to request a feature,
currently paletteProvider is not supported by FastBoxPlotRenderableSeries, which is useful for our case for visual feedback on selected box plots.
Kindly requesting you to add this feature,
Thanks, Regards
- Rahul Kathayat asked 10 months ago
- last active 9 months ago
I have noticed in official demos as well that when using DataPointSelectionModifier with drag select the last index point wont get selected. This is really annoying as the click functionality works but only drag for last index does not
- Rahul Kathayat asked 10 months ago
- last active 10 months ago
Hello SciChart Team,
I would like to report an issue regarding WebGL1 support in SciChart v5+.
I am aware that WebGL1 support was removed starting from v5, and that the engine now requires WebGL2.
However, in my environment this is a hard limitation, and WebGL1 is still required due to legacy hardware and GPU constraints.
I performed multiple tests and can confirm the following:
SciChart v3 works correctly using WebGL1
SciChart v5+ does not render or fails to initialize on the same machine
The browser reports that WebGL2 is not available, only WebGL1
The same chart logic and dataset work perfectly in v3, but fail in v5+
This confirms that the issue is not related to the chart configuration, data, or memory usage ā the only difference is the WebGL backend requirement.
Unfortunately, in my case, upgrading the hardware or enabling WebGL2 is not possible at the moment, so WebGL1 compatibility is still necessary.
I would like to ask:
Is there any official or experimental fallback to WebGL1 in v5+?
Is there any internal flag, build option, or legacy bundle that still supports WebGL1?
If not, is there any recommended migration path for environments that do not support WebGL2?
Thank you very much for your attention and support.
Best regards,
JĆŗlio Soares
- Julio Soares asked 10 months ago
- last active 10 months ago
Hello,
I have a wpf application that has several SciChartSurface, each of which has a DateTime axis for the x-axis.
I am currently using MVVM to bind data to the axes.
I want to display a custom band on the x-axis but am having difficulty. depending on the data there could be one or more bands to display.
For example if the date range is from 2/3/2026-2/4/2026, there may be a band that needs to be shown from 2/3 10:00-11:00 and one from 2/3 14:00-14:25.
Can you point me to any examples that may show how to accomplish this?
Regards.
- Aaron Douglas asked 10 months ago
- last active 9 months ago
Many years ago, SciChart tech support provided me with code for a RollerMarkerHelper class. I implemented this in VB.net, but I’ve attached a C# version which I just created using an automated translator. This code takes as arguments a RenderableSeries and a style template. I used this, along with a very simple style template such as the one shown below, so that I could display a gray circle over whatever point the cursor was over. (This is useful in my particular application.)
But I’m implementing a new application in C# using the MVVM approach (e.g., LineRenderableSeriesViewModel). How can I modify the RollerMarkerHelper class to handle this, or is there another approach I should use?
<ControlTemplate x:Key="SpectrumRolloverMarkerTemplate">
<Ellipse Width="7" Height="7" Fill="SlateGray" Stroke="SlateGray" StrokeThickness="1" />
</ControlTemplate>
- yefchak asked 11 months ago
- last active 10 months ago
Hi,
In XAML for axes bind I need to write into s:SciChartSurface just
XAxes="{s:AxesBinding FrcLayerChartXAxes}"
If I write in C# code as I see I need to make in cycle like this (but is doesn’t worked)
FrcLayerChart.XAxes.Add(FrcLayerChartXAxes[i]);
here FrcLayerChartXAxes is ObservableCollection
Can I add all axes by 1 step?
- Fedor Iudin asked 11 months ago
- last active 11 months ago
Hi,
Iām working on a feature for wpf application where there will be multiple tab controls and each tab control can be able to plot the graphs . So I have a usercontrol with scichartsurface which is bound to dataseries of type LineRenderableSeriesViewModel. User should be able to close all the tabs one by one. But when we are closing the last tab the application is getting crashed with no logs being caught at wpf level unhandled exception. But getting the below message while debugging, for –
Exception {“Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”} System.AccessViolationException
The usage of the scichart is as follows:
this scichartsurface is being placed inside an usercontrol and the user control is used as template to document page for docking manager control
Package used for scichart:
SciChart3D-8.5.0.28148
SciChart.DirectX-8.5.0.28148
Any guidance on the correct disposal/teardown pattern for SciChart in a multi-tab scenario, or known workarounds for last-surface shutdown, would be greatly appreciated.
- Jitendra Dash asked 11 months ago
- last active 11 months ago
Hi folks,
I’m using MVVM and need to implement hit tests. I found this post from nine years ago, saying it’s not yet implemented:
https://www.scichart.com/questions/wpf/hit-testing-a-renderableseriesviewmodel
Surely you have a solution by now? What is it?
Thanks,
–George
- yefchak asked 11 months ago
- last active 11 months ago
Hey,
I’m working on a feature where users can edit DataPoint position directly on a chart by dragging them with the mouse, and I would like to ask for guidance, best practices, or existing examples. I see one example for SciChart WPF but couldn’t apply that to JS because many things differ between WPF and JS.
Goal
Allow users to change the point positions of a LineSeries by dragging individual points on the chart.
Given
An FastLineRenderableSeries (XyDataSeries) with EllipsePointMarker.
When
The user clicks and holds the left mouse button on a point (EllipsePointMarker)
Then
The selected point changes its appearance (e.g., bordered or highlighted) and it is possible to move the point to change the position of it.
On Mouse Release
The point position is updated
Line and point styling return to their default state
- Marvin Jaworski asked 12 months ago
- last active 11 months ago
Hi,
I’m experiencing an issue after upgrading to SciChart v4.0.923.
It seems that the font registration for NativeTextAnnotation is not rendering correctly, especially regarding numeric characters. The rendered text appears distorted or improperly shaped.
This behavior did not occur in SciChart v3, where the same annotations and fonts rendered correctly.
I’ve attached screenshots comparing the output in version 4 vs version 3 to illustrate the difference.
Could you please check whether this is a known issue in the new rendering pipeline, or if any additional configuration is required for custom font registration in SciChart 4?
Thank you!
If you need any additional information or a reproduction snippet, I can provide it.
- rocket trade asked 12 months ago
- last active 11 months ago
Hi,
Iām building a chart with Candlestick data and Iād like to show a heatmap background under the candles (orderflow / volume-by-price style visualization).
Right now I have a working but ugly workaround:
I take my candlestick series (which has timestamps on the X axis)
I convert all timestamps to a simple numeric index (0, 1, 2, ā¦)
I use those numeric indexes both for the candlestick series and for the heatmap, so that they line up
This works, but itās not great for several reasons:
Candlestick data is naturally time-based (UNIX timestamp / Date) and Iād like to keep using a CategoryDateAxis / DateTimeAxis instead of an artificial numeric axis.
Iām worried about performance and maintainability: converting back and forth between timestamps and indexes adds an extra mapping layer and makes the code more complex.
With indexes, handling gaps in time (weekends, missing candles, etc.) becomes less intuitive than using the real timestamps.
- geppetto cruciani asked 12 months ago
- last active 12 months ago
Hi,
I upgraded scichart.js from 3.5.774 to 4.0.918, my chart now has a padding on the right side even though it was not there before.
I only added yAxis to the left side of the chart and not the right (please see attached image).
I’ve already set padding to 0:
sciChartSurface.padding = Thickness.fromString(‘0 0 0 0’)
If I want to get rid of the padding, I now have to change it to:
sciChartSurface.padding = Thickness.fromString(‘0 -11 0 0’)
The breaking changes page only mention padding change to the SciChartSubSurface, but I am not using that. https://www.scichart.com/documentation/js/v4/whats-new/breaking-changes-v3-v4/
I only have one sciChartSurface.
const { sciChartSurface, wasmContext } = await SciChartSurface.create(divElementId)
Please let me know what might be causing this, thanks.
- Edwin Liu asked 1 year ago
- last active 12 months ago
I’m attempting to create a custom CursorModifier to display series information aggregated across multiple SciChart surfaces into a single tooltip. These surfaces are synced via the VerticalChartGroupId with the charts displayed as part of an ItemsControl using MVVM. The default behavior only shows information for the series in the subpane where the mouse is. This makes sense given the CursorModifier is local to the subpane and set via a DataTemplate assigned to the ItemsControl.ItemTemplate.
To create a “global” CursorModifier, I’m guessing I need to override the GetSeriesInfoAt method of CursorModifier. I have access to all the IRenderableSeriesViewModels across all the subpanes via the parent view model. My question is how can I access the appropriate SeriesInfo object for each of these renderable series in order to return an enumerable of SeriesInfo objects? These should be the appropriate derived type (e.g. OhlcSeriesInfo, BandSeriesInfo, etc.) so that my template selector can do its thing. Thank you!
Lawson
- Lawson McWhorter asked 1 year ago
- last active 10 months ago
Hello,
I am new to SciChart and wanted to try to implement one in a new test project for later projects.
I want to add a new chart to the normal blazor homepage.
I almost got it done and it currently looks like in the attached picture.
But I still get this error message: Unhandled exception rendering component: Cannot read properties of undefined (reading ‘SCRTDoubleVector’)
TypeError: Cannot read properties of undefined (reading ‘SCRTDoubleVector’).
I want the SciChart to initialize in my Home.razor file.
This is the code in my .js:
window.initializeSciChartWithSettings = async function () {
const {
SciChartSurface,
NumericAxis,
FastLineRenderableSeries,
XyDataSeries,
NumberRange
} = SciChart;
const { sciChartSurface, wasmContext } = await SciChartSurface.create("sciChartSurface");
sciChartSurface.xAxes.add(new NumericAxis(wasmContext));
sciChartSurface.yAxes.add(new NumericAxis(wasmContext));
const dataSeries = new XyDataSeries(sciChartSurface.engine, {
xValues: [1, 2, 3, 4, 5],
yValues: [1, 2, 3, 4, 5]
});
const lineSeries = new FastLineRenderableSeries(sciChartSurface.engine, {
dataSeries: dataSeries,
strokeThickness: 2,
stroke: "#2596BE"
});
sciChartSurface.renderableSeries.add(lineSeries);
window.sciChartSurface = sciChartSurface;
window.sciChartDataSeries = dataSeries;
return { sciChartSurface };
};
I really don“t know what to do and would be thankful for every awnser!
- Fabian Mutschler asked 1 year ago
- last active 9 months ago
Hi folks,
In the old days, text annotations were implemented using a CustomAnnotationsChartModifier which would bind to a collection of TextAnnotationViewModels. The TextAnnotationViewModel included tool tip text in addition to the main text and the coordinates.
In the current SciChart, eventualy we now bind a collection of IAnnotationViewModels to the SciChartSurface’s built-in Annotations property. But these viewmodels do not implement a member for tool tip text.
How can I replicate my old code, which dynamically created and displayed text annotations which implement a ToolTip as well?
- yefchak asked 1 year ago
- last active 10 months ago

