score:0
Accepted answer
wrap drilldown with $timeout
to trigger digest cycle:
function changetodrilldown(setindex){
if ($scope.charts.temp===null){
$timeout(function () {
$scope.charts.temp = $scope.charts.primary;
$scope.charts.primary = $scope.charts.drilldown[setindex];
}, 0);
}
}
Source: stackoverflow.com
Related Query
- Angular-Charts bar chart does not update when I change the data, series, labels
- How to change the color of the bar in barchart if the data is negative - Angular Charts
- chart does not change the values when the variable changes the value
- Chart.js returns a console error and does not display the chart when using variables as data input
- Modify the labels in chart.js when I update the chart
- Chart.JS: How can I only display data labels when the bar width is big enough for the text?
- How to show the chartjs bar chart data values labels as text?
- ChartJS not showing data for time series bar chart
- Angular6 and ng2-charts does not display any charts when i fill data from webservice
- ng2 charts bar chart need spacing between 2 bars in series Angular
- Bar chart (chart.js) with only 2 points does not show one of the bars
- Is there any way to change the font size of labels in bar chart in Chart.js v3?
- ChartJs does not render chart when binding canvas id in Angular
- data in charts of charts.js is changing when I click in the line chart
- ng-charts not updating labels when chart data is updated at same time
- Chart is not populating when getting the data from AJAX call
- Firefox is not responding when loading 800+ data sets in Bar Chart with Charts.Js
- The real time chart sometimes does not display when I switch the target
- Charts with previous data appear when hovering the cursor over the chart in Chart.js
- Background color does not work when trying to create my data before using scatter chart with chart.js
- The dataset for bar graph is not set properly using ng2 charts and ng5-slider in Angular
- Position of the x-axis labels is not in sync with the line chart data points
- Angular ChartJs does not show Data for multiple Charts
- Angular with ng2charts for bar chart shows NAN% when no data present
- Angular Chart color does not change
- Chart JS: Donut/Doughnut Chart: Tooltip to be shown always for all the data. All tooltip is not shown when multiple data are with 0 data
- The data that is called in chart does not match the database
- Chartjs Bar Chart showing old data when hovering
- Hide Y-axis labels when data is not displayed in Chart.js
- Chart looks only grey, does not show the color - Chartjs,discordjs
More Query from same tag
- Doughnut chart from Chart.js, custom legend and call of original handler not works as expected
- CakePhp3 - Showing values on ChartJs
- charts.js global options gridLines
- Click events on Pie Charts in Chart.js
- How can labels/legends be added for all chart types in chart.js (chartjs.org)?
- Charts.js legend more than view value
- ChartJS how to generate custom legend?
- Disable or hide YAixs of chart in chartJs
- Formatting Data With Charts.JS
- How do you add custom text to tooltips in charts.js
- how to display bars in chartjs
- chart.js - Add corporate design to chart
- Chart.js add icon at the top of bar
- How to reduce the number of points shown on line chartjs chart with a large dataset?
- Lift the bar up from the bottom in bar type chart
- Installing chartjs in project without npm, bower or CDN
- Data Labels wrongly positioned on bar chart - chartjs
- How to give link for lable/Legend in chart.js? and if the value is 0 how to remove the legend?
- How to use Chart.js to draw mixed Financial / Candlestick and Bar Chart?
- How do I create a chartjs bar chart?
- After rendering one chart when trying to render a new one chart.js gives "Check that a complete date adapter is provided."
- Remove animation time for chartjs datapoints
- the graph in the view is not displayed - Chart.js Angularjs
- In Chart.js and django, add data by clicking the button
- Is there any way to display float bar in chart.js?
- how resetZoom() en multiple charts (ng2charts or chartjs)?
- interactive Button doesn't hide the chart as I intended
- How to change bar color acording to label value in chartjs
- ChartJS changing displayed data based on date?
- Changing tooltip color in Chart.js