From 32bfe6ac9d088dd83f6dfcf48be4cf1b81d75abf Mon Sep 17 00:00:00 2001 From: ggalancs Date: Mon, 16 Jan 2017 13:08:17 +0100 Subject: [PATCH] add setTitleText function to allow change chart title in run time --- c3.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c3.js b/c3.js index 2ce7f7e0f..9ec288a17 100644 --- a/c3.js +++ b/c3.js @@ -7008,6 +7008,10 @@ this.internal.config.tooltip_onhide.call(this); }; + c3_chart_fn.setTitleText = function(text){ + this.internal.title.text(text); + }; + // Features: // 1. category axis // 2. ceil values of translate/x/y to int for half pixel antialiasing