From 345919ea10b6522d96f347b9425c616b47dd720d Mon Sep 17 00:00:00 2001 From: Loke Sonne Date: Tue, 2 Feb 2016 08:31:37 +0100 Subject: [PATCH] Added function resetBreadCrumbs The function resets the breadcrumbs. This is useful when updating a chart with breadcrumbs, because the function clearChart doesn't reset this part of the chart. --- jsrf/src/js/components/chartcomponent.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jsrf/src/js/components/chartcomponent.js b/jsrf/src/js/components/chartcomponent.js index a55b396b..4a7a58bf 100644 --- a/jsrf/src/js/components/chartcomponent.js +++ b/jsrf/src/js/components/chartcomponent.js @@ -186,7 +186,10 @@ define([ pro.requestRedraw(); pro.aspect.revoke('series'); }, - + resetBreadCrumbs: function() { + drillLabelList = []; + currentDrillDownStep = 0; + }, addDrillStep: function(cb) { pro.isDrillDownable = true; drillDownSteps.push(cb);