Code Monkey home page Code Monkey logo

scichartblazor's People

Contributors

andyb1979 avatar dhruvindudhat avatar mikehollas123 avatar rfellers avatar shloemi-yokohama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

scichartblazor's Issues

Adding multiple axis to a chart.

Hello! Thank's a lot for this project!
I was trying to add multiple axis on a chart in a cycle like this:

` for (int i = 0; i < _seriesCount; i++)
{
var YAxis = new NumericAxis()
{
Id = $"Y{i}",
MaxAutoTicks = 5,
DrawMajorGridLines = false,
VisibleRange = new SciChartNumberRange(-100.0, 100.0),
VisibleRangeLimit = new SciChartNumberRange(-1000.0, 1000.0),
IsVisible = (i == 0)
};
await _chartBuilder.AddAxis(YAxis, AxisType.Y);

var XAxis = new NumericAxis()
    {
        Id = $"X{i}",
        MaxAutoTicks = 5,
        DrawMajorGridLines = false,
        GrowBy = new SciChartNumberRange(0, 0.2),
        VisibleRange = new SciChartNumberRange(-1000.0, 1000.0),
        VisibleRangeLimit = new SciChartNumberRange(-1000.0, 1000.0),
        IsVisible = (i == 0)
    };
await _chartBuilder.AddAxis(XAxis, AxisType.X);

} `

But it ended with error
Error from chart in div Ced51579e-26cc-4536-96e2-49f46254f9db: TypeError: Cannot read properties of undefined (reading 'min') at ExtremeResamplerHelper.resetAndFillBasicNativeArgs (ExtremeResamplerHelper.js:178:54) at ExtremeResamplerHelper.needsResampling (ExtremeResamplerHelper.js:50:18) at BaseRenderableSeries.needsResampling (BaseRenderableSeries.js:935:37) at SciChartRenderer.resampleSeries (SciChartRenderer.js:65:17) at SciChartRenderer.prepareSeriesRenderData (SciChartRenderer.js:328:57) at SciChartRenderer.render (SciChartRenderer.js:144:35) at SciChartSurface.doDrawingLoop (SciChartSurface.js:707:35) at SciChartSurface.onRenderSurfaceDraw (SciChartSurface.js:1337:18) at RenderSurface.onRenderTimeElapsed (RenderSurface.js:37:14) at Object.Draw (createMaster.js:294:60)

I looked closer to js code and found out that in this function

SciChartRenderer.prototype.prepareAxesRenderData = function () { var xAxesById = new Dictionary_1.Dictionary(); var yAxesById = new Dictionary_1.Dictionary(); // Prepare XAxes this.sciChartSurface.xAxes.asArray().forEach(function (xAxis) { xAxesById.add(xAxis.id, xAxis); xAxis.prepareRenderData(); }); // Prepare YAxes this.sciChartSurface.yAxes.asArray().forEach(function (yAxis) { yAxesById.add(yAxis.id, yAxis); yAxis.prepareRenderData(); }); return { xAxesById: xAxesById, yAxesById: yAxesById }; };

this.sciChartSurface.xAxes has only last axe with last id.
I tried rewriting the wrapper and pass serialized list of axis. It works, but all Ids have default values, so the error doesn't go away.

Is it possible to add axes in different way or maybe fix something in existing method?

Getting Error "This version of SciChart is too old to be trialed"

ScichartBlazor nuGet Package v1.0.0.0
Scichart v2.2.2415

Getting Below Error:
Sorry! This version of SciChart is too old to be trialed. Please update to the latest version
Looking for Licensing Wizard... Please run it or click for download and installation instructions.

Is there anything suspicious?

Dispose not working

I noticed a big memory leak (probably not tied to this actual case, lot of charts and adding new/removing old) and then started to search for probable causes. My code previously used SciChartBuilder.Dispose(), but I suspected it may not work as thought so I changed it to async version of it and now I will get errors.

My code:

    public async void Dispose()
    {
        await _chartBuilder.DisposeAsync();
        GC.SuppressFinalize(this);
    }

Error:

Error: Could not find 'sciChartBlazorJson.unregister' ('unregister' was undefined).
at https://0.0.0.0/_framework/blazor.webview.js:1:328
at Array.forEach (<anonymous>)
at s.findFunction (https://0.0.0.0/_framework/blazor.webview.js:1:296)
at S (https://0.0.0.0/_framework/blazor.webview.js:1:2437)
at https://0.0.0.0/_framework/blazor.webview.js:1:3325
at new Promise (<anonymous>)
at beginInvokeJSFromDotNet (https://0.0.0.0/_framework/blazor.webview.js:1:3306)                                                                                                                                                                                                                                                                                                 at https://0.0.0.0/_framework/blazor.webview.js:1:40711
at EventTarget.<anonymous> (<anonymous>:7:62)
at EmbeddedBrowserWebView.<anonymous> (<anonymous>:1:40673)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
at SciChartBlazor.SciChartBuilder.DisposeAsync()

Any recommendations what to do/try? Create a new method inside javascript and use that and make PR?

License Version of Scichart Js is not showing charts in other machines (Release Mode)

I am creating .Net MAUI Blazor Hybrid Application (Window Application) and during development, I am using a trial version of sci chart js and setting up that version runtime key. It works fine on my machine and also on other machines.

Finally, I have purchased a scichart js license and set up the runtime key in the code.

In debug mode charts are visible in my machine but not in others due to one developer access which is correct!
But the strange thing is in release mode charts are not visible too... This cause an huge problem!! which is working in trial version. I have tested this in other machines also same thing happens.

Please review below error screenshot.
MicrosoftTeams-image

@mikehollas123 @andyb1979 @rfellers Is there anything wrong here? Can you please help me ASAP? This is on urgent basis.

VisibleRange is not working properly for axis

After give values to VisibleRange for any axis, expect that first time chart view should be in that range which was given to VisibleRange.
But, this is not set the visible range even after update AutoRange to Never/Once.
Looks like something is override the values of VisibleRange.

Is there anything missed ??

Test & Update for SciChart.js v3

Hi guys!

Just a note / issue to test & update for scichart.js v3. When we have some bandwidth happy to help with that. It's been very busy here at SciChart though!

Extending CustomChartModifier2D

Amazing Blazor wrapper. Thank you for putting this out there. I have started playing with SciChart in a Blazor project but I am using TypeScript, albeit, I've not loaded the definitions file yet, so it is not taking advantages of the strongly typed system.

When I posted up a question on the SciChart forum, Andrew, the CEO pointed me to this repo and after quickly reviewing it today, I believe if I'm not mistaken, that it's missing a crucial feature that I've been able to achieve in TypeScript and that is to extend the CustomChartModifier2D. This allows me to draw on box annotations, lines and other shapes by mouse clicking on the chart ittself.

I can understand that this might not be a priority for most, but I was wondering, could you help point me in the direction of how to achieve this in your project and I'll create a PR for it if I can get it working.

Thanks

Possibility to enable and disable modifiers

SciChart has possibility to enable and disable modifiers. This library would benefit this kind of possibility, because clearing and re-adding them all the time seems little bit too much.

XYDataSeries UpdateSeries

Great package, thanks for putting this out there!

I would like to know if it is possible to implement the DataSeries.Update() method? It seems that this feature is missing, and this is unfortunate because it does not allow high speed functionality when displaying real time data.

I may be able to contribute to this project once I get more used to the source code, but right now I am looking for a quick fix, as I have a demo next week

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.