SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0 votes
0 answers
5 views

I was looking at the example given at this link for NonUniformHeatmapDataSeries in SciChart. In this example, the width and height of heatmap is given as h=4 and w=7. As I understand h is for Y axis and w is for X axis and data[,] is for Z axis. However, the counts in actual data filled for these axis are not matching wight h and w.

var xRangeMapping = new int[] { 0, 10, 20, 26, 36, 60, 72, 84 };   // 8 points for w
var yRangeMapping = new int[] { 100, 250, 390, 410, 600 };         // 5 points for h

What is the purpose of extra points added at first place (0 and 100)? Are these required to set the starting point for both axis?

Here is the code given at above link:

int w = 7, h = 4;
var data = new double[h, w];
double maxValue = double.MinValue;
for (int x = 0; x < w; x++)
    for (int y = 0; y < h; y++)
    {
        data[y, x] = 3.5 * ((h - y) * (w - x));
        maxValue = Math.Max(maxValue, data[y,x]);
    }
var xRangeMapping = new int[] { 0, 10, 20, 26, 36, 60, 72, 84 };
var yRangeMapping = new int[] { 100, 250, 390, 410, 600 };
var heatmapDataSeries = NonUniformHeatmapDataSeries<int, int, double>(data, i => xRangeMapping[i], i => yRangeMapping[i]);

// Apply the Heatmap DataSeries to a FastNonUniformheatmapRenderableSeries
var heatmapRenderableSeries = new FastUniformHeatmapRenderableSeries()
 {      
     ColorMap = new HeatmapColorPalette()
    {
        Maximum = maxValue,
        Minimum = 0,
        GradientStops = // exercise left to the reader
    }
 };
  • Anil Soman asked 18 hours ago
  • last active 18 hours ago
0 votes
0 answers
16 views

How to make chart axis (date axis in my case) to move with scrolling?

Because currently labels staying on it’s positions and just refreshing its values.

Best regards, Vadim

0 votes
14 views

Hello there

I’m looking for any solution to work with milliseconds timestamps (like that one 1563448997279), but haven’t found anything yet.

Is it possible to handle them without losing precision?

Solutions like drop milliseconds not working for me.

One more question to developers:
What is the difference in SCIDataType_DateTime and SCIDataType_SwiftDateTime?

In source code i only found this:
@field SCIDataType_DateTime – NSDate

0 votes
0 answers
13 views

We have a graph surface with some point markers on it and we want to show a custom tooltip every time the user taps on a point marker. So far I’ve used a UITapGestureRecognizer, convert the touchpoint in the chart frame and for each of the renderable series perform a HitTestAtX with a radius (I’ve tried 1, 5 and 30) but it always returns true, even if I tap on an area where there’s a gap in the chart. Here’s some sample code:

SCIHitTestInfo hitTestInfo = renderableSeries.HitTestProvider.HitTestInterpolateModeAtX(touchPoint.X, touchPoint.Y, 30, renderableSeries.CurrentRenderPassData);

if (hitTestInfo.match)
{
       Console.WriteLine($"Tapped {hitTestInfo.xValue} {hitTestInfo.yValue} with index {hitTestInfo.index} of the series {renderableSeries.DataSeries.SeriesName}");

       var elementSeries = Model.BottomRightLegendList.FirstOrDefault(tup => tup.DataSeries.SeriesName == renderableSeries.DataSeries.SeriesName);

       var element = elementSeries.GraphElement;

       if (element != null)
       {
            matchedElements.Add(element);
       }
}

Why is the “match” property always true, even if there are no Point Markers in the radius?

0 votes
0 answers
18 views

Hi

I have a SCIFastLineRenderableSeries backed by data in SCIXyDataSeries.

I setup FIFO to 300 (this just a number I may increase, but it stores 30+ seconds of data)

x data is time stamp.

each time I have new data, I set a new visibleRange to show about 30 seconds of data on screen

xAxis.visibleRange = [[SCIDoubleRange alloc] initWithMin:SCIGeneric(secondSinceStart-31) Max:SCIGeneric(secondSinceStart)];

So this will scroll along showing latest 30 seconds of data. And that’s great.

But I want to scroll to the left to view the older data. because of the visibleRange is set I am not able to touch the axis labels and do anything)

how do I set the visibleRange or maybe not set it, so I can enable the scroll.

Here is the drag modifier I use , but I think it does not do anything either because of the visibleRange
SCIXAxisDragModifier * xAxisDragmodifier = [SCIXAxisDragModifier new];
xAxisDragmodifier.dragMode = SCIAxisDragMode_Pan;
xAxisDragmodifier.clipModeX = SCIClipMode_None;

Thanks

0 votes
0 answers
15 views

I am using a custom CursorModifier class in my WPF code. I have created a class inherited from CursorModifier for this purpose. Now I want to apply cross-hair cursor style to my chart. The style in XAML is not getting applied at all. However, when I use the CursorModifier directly (instead of custom modifier class) in XAML, then it applies.

If I changed the TargetType to “loca:MyCursorModifier”, then it gives error “The memeber StrokeThickness is not recognized” & “The “memeber Stroke is not recognized”.

<UserControl.Resources>
    <Style x:Key="CrossLineStyle" TargetType="Line">
        <Setter Property="StrokeThickness" Value="1" />
        <Setter Property="Stroke" Value="Black " />
    </Style>
</UserControl.Resources>

<local:MyCursorModifier ShowTooltip="False" ShowTooltipOn="Never" ShowAxisLabels="False" SourceMode="AllSeries" LineOverlayStyle="{StaticResource CursorLineStyle}"/>
0 votes
14 views

i want to implement a custom modifier to track the users touch, similar to rollover but without displaying a view

I tried to do this by implementing SCIGestureModifier and overriding all the onTouches methods, but – no matter the user behaviour – the modifier will always receive an onTouchesCancelled event after about a second and receive no more of these events after that.

What does work is implement onPanGesture to actually track all the user’s movement but i don’t see any way of how you would receive a touch up event this way (which i do need)

Is there any fundamental misunderstanding on how this should work on my side?

0 votes
0 answers
15 views

Hi there!

I am relatively new to C# and I am currently trying to plot a network dependency graph in my wpf application. This is something like a hierarchical edge bundling graph. https://vega.github.io/vega/examples/edge-bundling/

Are there any good plotting libraries out there that can help me achieve this? I have looked into Scichart and it does not seem to be able to do it.

0 votes
0 answers
20 views

I am using SCIStackedMountainRenderableSeries in my iOS application, I am always getting chart background as black grids, I want to make it clear or white background. How can I do that?

I have tried

sciChartSurface?.backgroundColor = UIColor.white
sciChartSurface?.applyThemeProvider(nil)

That did not worked, Please help.

0 votes
0 answers
17 views

So for both SCIZoomPanModifier and SCIXAxisDragModifier you can set a clip mode, that will cause the graph to not zoom in if you try to scroll past the edges.

This is not possible for the y-axis however, so everytime anyone scrolls up or down to far, the graph zooms in, which is not useful to anyone ever

Is there any way to change this behaviour at all?

Thanks in advance

0 votes
32 views

Is it possible to display the X Axis peak Value on SciChartRadarSurface?
I tried to use Text Annotation but I don’t know how to use it on SciChartRadarSurface
I tried also to use RadarAxisPanel but I did not find examples that explain how to use it and if I can insert Text annotations inside
Please help
Thank you

0 votes
0 answers
23 views

So I want to draw multiple charts so is there any way I can have stacked yAxes like yAxis 2 should be drawn below yAxis1. I have gone through your example and there I got that we can add multiple surface but its becoming difficult for us to show a crosshair on all surfaces since we have a custom cross hair. Can you guide on same. Thanks in advance

0 votes
31 views

Hello,

I have been trying to figure out how can one have datetime support for Polar x axis? Is this already supported? If yes, how?

Looking forward for the response!

0 votes
30 views

We have an application where we have different tabs to control the content of one SciChartSurface. Each tab have its own view on data with different visible YAxes and LineSeries which are changing the surface. The goal is to have one history for each view. For right now the ZoomHistoryManager resets after each change. Is it possible to store the history of each view?

0 votes
60 views

Has anyone encountered this before?

XamlParseException: Unexpected record in Baml stream. Trying to add to SciChartSurface which is not a collection or has a TypeConverter.

<DataTemplate x:Key="SciLineChartTemplate"><Grid><s:SciChartSurface ...

0 votes
32 views

I am trying to plot a column plot. However, my column with is always 0. In debugging, I find that dataPointWidth = Math.Abs(xCoordinateCalculator.GetCoordinate(DataSeries.MinXSpacing) – xCoordinateCalculator.GetCoordinate(0)); is called. However, the DataSeries.MinXSpacing is 0. My XValues are just incremental numbers as 0, 1, 2, 3.. 90. What would cause DataSeries.MinXSpacing to be 0? It should be 1.

  • Ning Qiang asked 2 weeks ago
  • last active 2 weeks ago
0 votes
55 views

Hi! I’ve purchased your products including source code. I need to modify some of your code and have tried in many ways, but I have not compiled your source codes successfully. I am working on it on my Mac Osx, using android studio version of Android Gradle Plugin Version 3.1.0 and Gradle Version 4.4. I’ve got these errors, but I could not find any hints to solve this problem from your QnA site and google. The messages are following. Please let me know how to compile your source code properly. The source codes I have is SciChart_Android_v2.5.0.2540_SDK. Thank you for your good products and service.

Build command failed.

Error while executing process /Users/shiwansung/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/Android.mk NDK_APPLICATION_MK=/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/Application.mk APP_ABI=x86_64 NDK_ALL_ABIS=x86_64 NDK_DEBUG=1 APP_PLATFORM=android-19 NDK_OUT=/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/build/intermediates/ndkBuild/debug/lib -j4 /Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/build/intermediates/ndkBuild/debug/obj/local/x86_64/libdata.so}

[x86_64] Compile++ : data <= SciListUtil.cpp

[x86_64] Compile++ : data <= arrayOperations.cpp

[x86_64] Compile++ : data <= NativePointResamplerFactory.cpp

[x86_64] Compile++ : data <= resampling.cpp

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

MAKE_NATIVE(double, double)

^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:23:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex,jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: variable has incomplete type ‘void’

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:23:16: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex,jint viewportWidth, jboolean isCategoryData)\

           ^

:359:1: note: expanded from here

Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double

^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: expected ‘;’ after top level declarator

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:23:98: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex,jint viewportWidth, jboolean isCategoryData)\

                                                                                             ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:28:104: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void JNICALL Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ResampleWithoutReduction(JNIEnv *env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jboolean isCategoryData)\

                                                                                                   ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:33:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:38:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMin(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:43:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMid(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:48:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMaxUnevenlySpaced(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jdouble minXInclusive, jdouble maxXInclusive, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:53:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ResampleInClusterMode(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

MAKE_NATIVE(double, float)

^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:23:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex,jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:28:104: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void JNICALL Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ResampleWithoutReduction(JNIEnv *env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jboolean isCategoryData)\

                                                                                                   ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:33:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:38:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMin(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:43:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMid(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:48:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMaxUnevenlySpaced(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jdouble minXInclusive, jdouble maxXInclusive, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:53:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ResampleInClusterMode(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:61:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

MAKE_NATIVE(double, short)

^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:23:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex,jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:61:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:28:104: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void JNICALL Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ResampleWithoutReduction(JNIEnv *env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jboolean isCategoryData)\

                                                                                                   ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:61:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:33:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

0 votes
38 views

I’m trying to add more intervals into the legend of the Heat map. So far it only displays 10, 8, 6, 4, 2, 0, but I would like to edit it to display the numbers 0-10. From what I understand, the TickProvider API only works with an X or Y axis so I’m not sure if there’s a way to add the function.

0 votes
37 views

I’m using the Ternary Chart to plot three variables of interest.

Technically, a ternary plot should have three variables that sum to a constant.

However, the domain of my variables includes negative values.

Now, in theory, the linear space of the domains of each of the variables could be mapped onto R => [0,100].
From this, we can then compute the sum and normalize each variable by this sum to produce a [0, 100] value for each of the axes.

The problem is, I lose the original domain values prior to the transformation.

So my question is, can I use negative values for the ternary plot?

Thanks.

0 votes
0 answers
32 views

hello

0 votes
49 views

Hi,
so I want ask about the gradient color does the latest version of scichart support using gradient color in charts for both xamrin.android and Xamarin.ios

0 votes
45 views

Hello,
My requirement is to plot 3 dimensional data(x,y,z) in 2 D WPF chart. I know this is possible with bubble chart. But , i would like the plot to be seen as shown in the attached image file. I would like have Crossmark point marker instead of bubble(ellipse marker?) and crossmark should not be scaled according to z value(no scaling of point marker and it should be of default size ).
Please let me know how to achieve this one?

  • deepak b asked 2 weeks ago
  • last active 2 weeks ago
0 votes
62 views

Hi,
I’m using SciChart version 5.1.1.11473, runtime v4.0.30319 and SciChartEx 1.0.0.0.
I am having difficulty using LineArrowAnnotation and I need some help to solve my problem.

My problem is when I use the zoom and the size of the arrows.
When I zoom I need the length of the arrow not to change.
What process do I need to do to make the arrow the same size even when zoomed in?

. Below is a brief explanation of the program.
I made a linear graph where in certain points I show arrows down or up on the screen. (see Image01 below)
enter image description here ( Image01 )

With “HeadLength” and “HeadWidth” I can make the arrow head, the arrow body I am using “Y1” and “Y2”. (see Image02 below)
enter image description here ( Image02 )

When I zoom, I noticed that the arrow head does not change, but the length of the arrow does.
I need this length of arrow not to change like the head of the arrow. (see Image03 below)
enter image description here ( Image03 )

Finally, I apologize for my lack of knowledge of the products of your lordships.
And thanks for the attention paid.
Waiting for an answer.

Hamilton.

0 votes
45 views

Does Sci chart has any framework to support UI Automation in Android/iOS? Also I came across some screenshot based test for verification, Is this available for licensed user to test in Android/iOS?

0 votes
64 views

Hello,

I recently upgraded from v3 to v5, and I cannot figure out what to replace ToolTipLabelTemplate types with now that it’s missing. I saw in a different question like this that you directed them to look at ToolTipModifier documentation, and I have looked there, but I can’t find anything helpful for this problem. Could you please direct me to an example or explain what to change for a ToolTipLabelTemplate to make it work in v5.

Thanks,
Rachel

0 votes
43 views

Hi, if I have multiple graphs stacking on top of one another, is there any way for me to align them by the Y axis on the left?

I noticed that padding is applied to the most outer edge drawn item, so in many cases that would be the label, not the axis.

  • Sen Lin asked 2 weeks ago
  • last active 2 weeks ago
0 votes
0 answers
58 views

Hello,

I am trying to develop a WPF Chart with multiple X and Y Axes. I am able to achieve this perfectly and also I am able to remove a data series using the example available:

WPF Chart Add or Remove DataSeries

But, I am unable to remove the corresponding axes of the series whenever it is removed.

I am using the same logic used to remove a series:

sciChart.XAxes.Remove(sciChart.XAxes.GetAxisById(sampleId));

But, I am unable to get the expected result.

Am I missing something?

0 votes
0 answers
48 views

Hello.

It’s very strange, but chart can not be zoomed with pinch, only by double tap fitting full screen.
And when trying to zoom app freezes and CPU load became 100%.

func installChart() {
    sciChartSurface = SCIChartSurface(frame: self.view.bounds)
    sciChartSurface?.translatesAutoresizingMaskIntoConstraints = false


    self.vGraphBox.subviews.forEach({ $0.removeFromSuperview() })

    self.vGraphBox.addSubview(sciChartSurface!)

    NSLayoutConstraint.activate([
        sciChartSurface!.leftAnchor.constraint(equalTo: self.vGraphBox.leftAnchor),
        sciChartSurface!.rightAnchor.constraint(equalTo: self.vGraphBox.rightAnchor),
        sciChartSurface!.bottomAnchor.constraint(equalTo: self.vGraphBox.bottomAnchor),
        sciChartSurface!.topAnchor.constraint(equalTo: self.vGraphBox.topAnchor)
        ])

    // Add the SCIChartSurface as a subview
    self.vGraphBox.addSubview(sciChartSurface!)

    let xAxis = SCILogarithmicNumericAxis()
    xAxis.growBy = SCIDoubleRange(min: SCIGeneric(0.1), max: SCIGeneric(0.1))
    xAxis.scientificNotation = .logarithmicBase
    //xAxis.textFormatting = "#.#E+0"
    xAxis.logarithmicBase = 10.0
    xAxis.visibleRange = SCIDoubleRange(min: SCIGeneric(100), max: SCIGeneric(22000.0))

    let yAxis = SCINumericAxis()
    yAxis.autoRange = .never
    yAxis.visibleRange = SCIDoubleRange(min: SCIGeneric(-300.0), max: SCIGeneric(0.0))

    lineRenderableSeries.dataSeries = self.dataSeries
    lineRenderableSeries.strokeStyle = SCISolidPenStyle(colorCode: 0xFFE13219, withThickness: 1)

    //self.sciChartSurface?.chartModifiers.add(pinchZoomModifier) //Causes freeze
    self.sciChartSurface?.chartModifiers.add(SCIZoomPanModifier())
    self.sciChartSurface?.chartModifiers.add(SCIZoomExtentsModifier())

    SCIUpdateSuspender.usingWithSuspendable(sciChartSurface!) {
        self.sciChartSurface?.xAxes.add(xAxis)
        self.sciChartSurface?.yAxes.add(yAxis)
        self.sciChartSurface?.renderableSeries.add(self.lineRenderableSeries)
        self.sciChartSurface?.renderableSeries.add(self.lineRenderableSeriesMax)
    }
}
0 votes
0 answers
71 views

Currently the color of 3D axis plane can only be filled with one color by the property AxisPlaneBackgroundFill. We have a requirement that gradient color should be used there. Is it possible to achieve these through styling or templating, or otherwise? If not, could this possibly be implemented in the future?

0 votes
53 views

Today is my first day using SciChart and I’m following along with this hello world demo –

https://www.scichart.com/documentation/android/v2.x/webframe.html#Tutorial%2002%20-%20Creating%20a%20Chart.html

For some reason Android Studio won’t recognize ‘SciChartBuilder.init(this)’. Am I missing a file? I can create an instance of SciChartSurface with no problem but the builder line is a no-go. I have imported and referenced the 4 correct .aar files in my gradle.build file so I’m not sure what else I’d be missing. Any help for a newbie would be appreciated!!

  • Cory Giem asked 3 weeks ago
  • last active 3 weeks ago
0 votes
60 views

There is a problem with annotation drag listeners. OnDragEnded and in fact also OnDragStarted are called all the time (just like onDragDelta) instead of only on those particular events

Steps to reproduce
just add a listener to annotation (in my case CustomAnnotation)

.withAnnotationDragListener(object : OnAnnotationDragListener {
            override fun onDragDelta(annotation: IAnnotation, x: Float, y: Float) {
                //whatever
            }

            override fun onDragStarted(p0: IAnnotation?) {
                "onDRAGSTARTED".log()
            }
            override fun onDragEnded(p0: IAnnotation?) {
                "ONDRAGENDED".log()
            }
        })

Is there a solution?

0 votes
66 views

Hi,
Is it possible to append different size of parameters in xyzDataSeries<double,double,double>?
My requirement is to plot a bubble chart where size of X and Z array are same but Y array is of different size.
for ex, i need to append x[10], y[5], z[10] in xyzDataSeries<double,double,double>
please let me know if its possible or not

  • deepak b asked 4 weeks ago
  • last active 3 weeks ago
0 votes
82 views

Hi

I would like to modify the DateTimeAxis to have the date shown static below the time.
Currently I can’t figure out how to code something like that.

The basic idea is to have the date label

a) on the left and right of the date axis and moving with midnight
b) as bar below the time stamp

Is it possible to modify the DateTimeAxis to achieve both use cases?

To visualize, what I’m trying to achieve find some mocks below (neglect the time, midnight just moved to 18:19:30 :-))

0 votes
83 views

I have multiple charts that receive data and sometimes the data needs to be reset and the plotting needs to start over.

When I reset the data I set it to: new XyDataSeries<TimeSpan, double>();

This works great for the data, but the charts don’t refresh. I have to close the window with the chart and reopen it in order to get the new data to show up in the chart.

Is there a command I can send the charts that will clear the existing data and start plotting the new data without having to reopen a window?

Thanks!

  • Greg Knox asked 4 weeks ago
  • last active 3 weeks ago
0 votes
73 views

Hi

We have a lot of data coming into our software and are using a lot of XyDataSeries<DateTime, double> data series.

There are maybe 50 data series with the same X values and different Y values. So when the data series length is in the millions – there is an enormous memory overhead – 50 x maybe 5000000 x DateTime.

Is there a way to share the X values (or Y values) of a data series with another series?

/Flemming

0 votes
91 views

Currently, I’m using a uniform heatmap to display images taken from a monochrome camera. I’m using a RubberBandXyZoomModifier to allow to user to zoom in on a region of interest in the image. The SciChartSurface is set to be 640×480 (the image size) and is hosted in a Viewbox, so it’s size scales uniformly with the grid that it’s in. The problem I’m facing is that when I zoom in, the zoomed part of the image stretches to fit the 640×480 size, changing the pixel aspect ratio, but I want the pixel aspect ratio to stay constant so they are all square. What I want to happen is that extra space is added either on the top/bottom or left/right of the zoomed part of the image so the pixel aspect ratio stays constant. See the attached image for a visual explanation. I think I either need to change the SciChartSurface size or the GridLinesPanel size to match the zoomed area size, but I’m not sure how to go about doing that. Is there a way to achieve this? Thanks!

0 votes
0 answers
70 views

Hello.
We updated scichart to 2.5.0 version and got issue:
We have SCIAxisMarkerAnnotation with market line and set markerLinePen:

let mainDashPattern: [NSNumber] = [1.1, 1.0, 1.1, 1.0]
style.markerLinePen = SCISolidPenStyle(color: mainBlack15, withThickness: 1.0, andStrokeDash: mainDashPattern)

Sometimes, after create new chart, all lines with strokeDash colored with solid black color.

I added screenshots.

Thanks,
Alexey.

0 votes
0 answers
87 views

Hi ,

Is there any property by which I can stop the drag behavior of a tooltip on Scichart ? I have a reference point marker on the graph which displays a tooltip. I want this tooltip to be not able to move, since this is a reference point marker.

Thanks,
Harish

0 votes
98 views

It seems most of the modifiers bring up tooltip data with a pan, and then it goes away when the user lifts their finger. Is there any way to bring up tooltip data with a tap (and does not go away when the finger has lifted)? The main problem that we’re trying to solve is that we would like to be able to pan to look at the chart (and don’t want an axis pan), but would also like to bring up tooltip data.

  • Carolyn asked 1 month ago
  • last active 2 weeks ago
0 votes
97 views

Hi,
Is it possible to plot scatter chart with xyzDataSeries using Scichart WPF charts.
My requirement is to plot three variants of data (xyz), where x & y are axis, z is data to plot
Thanks
deepak

  • deepak b asked 1 month ago
  • last active 1 month ago
0 votes
0 answers
133 views

this is crash log just scroll left kline . please tell me how to deal with . (lldb) bt

thread
1 , queue = ‘com.apple.main-thread’, stop reason = EXCBADACCESS (code=1, address=0x0) frame
0 : 0x000000011290beb0 SciChart-[p_SCI_29RJjaaEk0 prs_rB:A:B:D:] + 772 frame 1: 0x000000011290b9f8 SciChart-[pSCI29RJjaaEk0 oexecuteMode:XColumn:YColumn:PointRange:VisibleRange:ViewPortWidth:LastPointSeries:isCategory:] + 684 frame
2 : 0x0000000112962c24 SciChart-[SCIXyDataSeries toPointSeriesWithResamplingMode:SCIIndexRange:ViewportWidth:IsCategoryAxis:VisibleRange:Resampler:] + 332 frame 3: 0x0000000112924420 SciChart+[pSCI29ASj923jdOIJIO29 scrrSWXA52f:A:B:C:D:E:F:] + 792 frame
4 : 0x0000000112923f48 SciChart-[p_SCI_29ASj923jdOIJIO29 scr_prDws:A:] + 1160 frame 5: 0x0000000112922b34 SciChart-[pSCI29ASj923jdOIJIO29 scrrL32e23:] + 212 frame
6 : 0x00000001128c5680 SciChart-[SCIChartSurface onRenderSurfaceDraw] + 220 frame 7: 0x000000011293e39c SciChart-[SCIRenderSurfaceBase onRenderTimeElapsed] + 240 frame
8 : 0x0000000112951240 SciChart-[SCIOpenGLRenderSurface onRenderTimeElapsed] + 192 frame 9: 0x0000000114964254 GPUToolsCore-[DYDisplayLinkInterposer forwardDisplayLinkCallback:] + 176 frame
10 : 0x0000000187453710 QuartzCoreCA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 672 frame 11: 0x0000000187507c5c QuartzCoredisplaytimercallback(CFMachPort, void, long, void*) + 240 frame
12 : 0x00000001834b4290 CoreFoundation__CFMachPortPerform + 188 frame 13: 0x00000001834cf000 CoreFoundationCFRUNLOOPISCALLINGOUTTOASOURCE1PERFORMFUNCTION_ + 56 frame
14 : 0x00000001834ce704 CoreFoundation__CFRunLoopDoSource1 + 440 frame 15: 0x00000001834cc1d8 CoreFoundation__CFRunLoopRun + 2196 frame
16 : 0x00000001833ebe58 CoreFoundationCFRunLoopRunSpecific + 436 frame 17: 0x0000000185298f84 GraphicsServicesGSEventRunModal + 100 frame
18 : 0x000000018ca6b67c UIKit`UIApplicationMain + 236
frame
19 : 0x00000001034ce07c FXChatmain at AppDelegate.swift:15:20 frame 20: 0x0000000182f0856c libdyld.dylibstart + 4

  • ke zhang asked 1 month ago
  • last active 1 month ago
0 votes
106 views

When I yAxis.setVisibleRange(0.d,10.d) then add a series, it triggers AutoRange to resize the graph.

If the VisibleRange is ANYTHING other than 0,10 (even 0,10.001) then it doesn’t resize the graph.

during my search, I found that setting Axis.AutoRange to .NEVER will stop the issue from happening.

https://support.scichart.com/index.php?/Knowledgebase/Article/View/17203/31

I still wanted to post this here because this is a notable bug that others will come across, and I wanted to show what solution I found.

0 votes
111 views

I want to hide the axis and the place occupied by the axis on xammarin.iOS, i’am using below code to do the same, the problem here is it does hide the axis but it is not removing the place occupied by axis,

Axis.IsVisible = false;

is it the right way to hide the axis and remove the place occupied by it, or am I missing something here.

0 votes
159 views

Currently, we are creating something like Point Cloud which is updated in real time in the project (40ms cycle) using 3D ScatterSeries.
However, in Dataseries, trying to set the color of individual pointers using PointMetadata3D’s VertexColor is too slow.
If we update only the coordinates without changing the color, we get the speed we want. I do not understand that changing the color value will seriously slow the process.
I want to know if there is a way to handle this phenomenon quickly.

0 votes
95 views

Hi.
I’m in process optimizing my app.
I’m using Objective-c.

I’d found some memory leaking issues and successfully fixed some of that.

A first issue was about ‘renderableSeries’ under ‘SCIChartSurfaceView’.
If you set class of UIView as ‘SCIChartSurfaceView’ in interface builder and make outlet without setting ‘strong’ or ‘weak’ in .m file,
It never get released automatically and will stay retained on memory.
For me, it caused about 90MB of memory leaking.
But I could solve this issue manually by putting -(void)clear; method of renderableSeries in viewWillDisappear method.

Another issue is about ‘SCIDateTimeDeltaCalculator’ and ‘SCINumericDeltaCalculator’.
It causes about 50MB of memory leaking.
But problem is, I couldn’t find neither where it’s been called nor how I release this manually.

I will be waiting for your answer.

Thanks.

+)
(lldb) po SciChartVersionNumber
0x3ff0000000000000

(lldb) po SciChartVersionString
0x474f525029232840

I wanted to know what version I’m using.. but i couldn’t know… what version am i using..?

0 votes
130 views

I try to use scichart for monitor two unrelated signal in one FastLineRenderableSeries,but it renders slow when points length increase,in demo and document,the XyDataSeries is an X ordered sequence to guarantee render fps,but my XyDataSeries is an unordered sequence,
do there any suggestion for this situation?

  • zj w asked 1 month ago
  • last active 4 weeks ago
0 votes
122 views

We have lots of Point Markers in our series that overlap, so we’re trying to find a way to Cluster them in Android and iOS. I can see that there is an SCIPointMarkerClusterizer. Can you give us some pointers on how we can achieve point marker clustering and/or spacing?

0 votes
125 views

How to set the background, font color and font size of the text label on the map;

Source as this:

PenStyle penStyle = new SolidPenStyle(getColor(R.color.baselineColor), false, 1, new float[]{7, 3, 3});
for (int i = 0; i < baseValues.size(); i++) {
baseLines.add(sciChartBuilder.newHorizontalLineAnnotation()
.withY1(baseValues.get(i))
.withStroke(penStyle)
.withAnnotationLabel()
.withHorizontalGravity(Gravity.FILL_HORIZONTAL)
.build());
}

0 votes
117 views

I have implemented a user control with a SciChartSurface as well as a SciChartLegend for time signals and an other user control with SciChartSurface for spectral bins (for reusability purpose). In another user control, I use these two user controls together and want to synchronize the Y-axis sizes on the left. In this use case the VerticalChartGroup has no effect. How can I synchronize the Y-axis sizes?

  • Tobias asked 1 month ago
  • last active 1 month ago
0 votes
150 views

I want to display a line series chart with 3500 series. But the application hangs 20-30 seconds because SciChart is doing something in the UI thread. I’ve read your article “https://www.scichart.com/performance-improvements-scichart-wpf-v5-1/” and set the extension property s:PerformanceHelper.EnableExtremeDrawingManager=”True” and s:PerformanceHelper.EnableExtremeResamplers=”True”. But there is no improvement!
You can reproduce this issue using your example “WaterfallChartDemo” and increase the series count from 50 to 3500.

Why s:PerformanceHelper.EnableExtremeDrawingManager=”True” and s:PerformanceHelper.EnableExtremeResamplers=”True” has no effect?

  • Tobias asked 1 month ago
  • last active 1 month ago
Showing 1 - 50 of 3k results