assets/js/pie/jquery.jchart.js
/*
         * Use this function to only update values of current segments, e.g. swapping the value of segment 1 from '100' to '3000'.
         * This will not draw the segments from scratch, so if the number of segment changes, use the Refresh function instead.
         */
Use this function to only update values of current segments, e.g. swapping the value of segment 1 from '100' to '3000'.
This will not draw the segments from scratch, so if the number of segment changes, use the Refresh function instead.
Use this function to only update values of current segments e . g . swapping the value of segment 1 from ' 100 ' to ' 3000 ' . This will not draw the segments from scratch so if the number of segment changes use the Refresh function instead .
Update(instance) {
            instance._methods.calculateDataValues(instance);
            const data = instance.settings.data;
            const values = instance.settings.values;
            switch (instance.settings.appearance.type) {
                case 'donut':
                    if (instance.settings.appearance.animated) {
                        instance._methods.animationLoop(instance, function (instance, progress) {
                            instance._methods.drawBodySegmentDonut(instance, data, values, {
                                'type': instance.settings.appearance.subType,
                                'updateOnly': true,
                                'modifier': progress
                            });
                        });
                    }
                    break;
                case 'pie':
                    if (instance.settings.appearance.animated) {
                        instance._methods.animationLoop(instance, function (instance, progress) {
                            instance._methods.drawBodySegmentPie(instance, data, values, {
                                'updateOnly': true,
                                'modifier': progress
                            });
                        });
                    }
                    break;
                default:
                    break;
            }
        }
Update ( instance ) { instance . _methods . calculateDataValues ( instance ) ; const data = instance . settings . data ; const values = instance . settings . values ; switch ( instance . settings . appearance . type ) { case 'donut' : if ( instance . settings . appearance . animated ) { instance . _methods . animationLoop ( instance , function ( instance , progress ) { instance . _methods . drawBodySegmentDonut ( instance , data , values , { 'type' : instance . settings . appearance . subType , 'updateOnly' : true , 'modifier' : progress } ) ; } ) ; } break ; case 'pie' : if ( instance . settings . appearance . animated ) { instance . _methods . animationLoop ( instance , function ( instance , progress ) { instance . _methods . drawBodySegmentPie ( instance , data , values , { 'updateOnly' : true , 'modifier' : progress } ) ; } ) ; } break ; default : break ; } }
Use this function to only update values of current segments, e.g.
Use this function to only update values of current segments e . g .
// calculate data values required to draw the graph // update the graph segments /* donut chart */ // animation loop /* pie chart */ // animation loop