Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call SetupCompletedCallback.InvokeAsync on Update() #185

Open
vouksh opened this issue Apr 23, 2021 · 0 comments
Open

Call SetupCompletedCallback.InvokeAsync on Update() #185

vouksh opened this issue Apr 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@vouksh
Copy link

vouksh commented Apr 23, 2021

Describe the feature request

I'm using a gradient color scheme on a chart, and discovered that if I update the chart data, everything turns into the base color and the gradient disappears. After some tinkering, I found that if I made a ref to the chart, I can do
await _timelineChart.SetupCompletedCallback.InvokeAsync(_timelineChart);
And the chart will then re-apply the styling from the javascript. Manually invoking the SetupCompletedCallback method did not achieve anything.

Which charts does this feature request apply to?

All charts

Describe the solution you'd like

When running await chart.Update(), SetupCompletedCallback is re-invoked.

JavaScript equivalent

(Sorry, not well-versed enough in JS to fill this section in)

Describe alternatives you've considered

I'm currently running the invoke manually like
SetupTimelineChart();
await _timelineChart.Update();
await _timelineChart.SetupCompletedCallback.InvokeAsync(_timelineChart);

Additional context

Without invoking the SetupCompletedCallback:
image
image
With:
image

@vouksh vouksh added the enhancement New feature or request label Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant