Open crolfe opened 10 years ago
Possibly yes. Also could be something about the auto-sizing interfering with the scaling options.
This will be fixed soon as I am going to remove that drawing logic entirely since it is now supported natively by ChartJS, hang with me :)
Sure thing. I found a workaround using ng-repeat after the dataset is ready, but that feels like cheating :)
Yeah that confirms it's a watch/apply issue though thank you.
I have narrowed down the exact cause of this issue and it will be fixed shortly.
I'm trying to set scaleStepWidth dynamically on a line graph (based on a maximum value in my dataset), and am having difficulty getting the chart to recognize that I've done so.
If I hard code a value for scaleStepWidth in the options object (plus scaleStepOverride=true and scaleSteps=20), the chart scales exactly as expected. If I try to set the chart options after I've received the dataset in the controller, then the chart appears to display using the default settings.
Is this happening because the view needs to be recompiled to reflect the changes to the options?