Comments (3)
I came across this issue due to using chartjs-node-canvas
which sets animation to false automatically. Scatter chart error bars aren't showing up, but bar chart error bars work.
Stepping through the code, it looks like the issue is that for scatter and line plots, chart.js has a "directUpdate" mode that gets used when animation is disabled. In this mode, it does not call updateElement()
on each element, which results in the custom properties e.g. xMin, xMax
not getting transferred from the parsed data objects to the PointWithErrorBar
objects.
If I manually disable directUpdate
using a step debugger, I was able to get a chart to render with error bars. However I can't figure out a way to prevent directUpdate
from being set by changing any configuration. Even if I alter the chartjs-node-canvas
library to set animation: true
, chart.js will override it, since it detects you aren't in a DOM platform.
So I'm not sure if this can be addressed by a change to the chartjs-chart-error-bars
module. I might try forking chart.js and adding an option to disable directUpdate
, I think that would probably work.
from chartjs-chart-error-bars.
I can confirm the error bars on scatter plots are working now in 3.8.0. Thank you @sgratzl !!
from chartjs-chart-error-bars.
Thanks, @sgratzl! ✨
from chartjs-chart-error-bars.
Related Issues (20)
- support multi error bars
- Removing y-axis labels HOT 1
- Add style options to readme? HOT 3
- lineWithErrorBars HOT 5
- elements.point configurations does not apply in lineWithErrorBars HOT 4
- add license badge
- Uncaught Error: "barWithErrorBars" is not a registered controller (v3.9.1) HOT 5
- Line with error bars fails for linear scale
- Updating a dataset without ErrorBar still draws the ErrorBars HOT 1
- check compatibility for chart.js 2.9.x HOT 1
- ie11 compatibility HOT 1
- String Parsing with Min / Max Values HOT 3
- LineWithErrorBars does not render when using scale of type time HOT 4
- Is there a .js file to import the plugin? HOT 2
- Hello Can you please share how to use chart-error-bars on Line Graph? HOT 2
- chart-error-bars on Line Graph HOT 2
- Sample documentation for styling HOT 4
- AMD import of helpers HOT 1
- Error: "barWithErrorBars" is not a chart type. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chartjs-chart-error-bars.