简体   繁体   中英

.renderTitle(false) is not working on linechart DC.js

I have some DC.js charts, I added a tooltip with d3-tip, so I needed to disable .title, use .renderTitle (false) and works well with bar charts and a GeoJson map, but when I use it in Linechart does not work. Is it a DC.js or d3-tip bug?

It works, but you have to call it before the chart is rendered, because it will not affect an existing chart. (And redraw won't remove any existing titles.)

Here is a fiddle demo, based on the Line Chart Example . The important part is calling

chart.renderTitle(false);

before

chart.render();

http://jsfiddle.net/1rafgm40/2/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM