Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

bold markup


stackedBar
    .tooltipThreshold(600)
    .width(containerWidth)
    .grid('horizontal')
    .isAnimated(true)
    .stackLabel('stack')
    .nameLabel('date')
    .valueLabel('views')
    .betweenBarsPadding(0.3)
    .on('customMouseOver', chartTooltip.show)
    .on('customMouseMove', function(dataPoint, topicColorMap, x, y) {
        chartTooltip.update(dataPoint, topicColorMap, x, y);
    })
    .on('customMouseOut', chartTooltip.hide);

container.datum(dataset.data).call(stackedBar);

chartTooltip
    .title('Testing tooltip');

tooltipContainer = d3.select('.metadata-group');
tooltipContainer.datum([]).call(chartTooltip);
                
Source by britecharts.github.io #
 
PREVIOUS NEXT
Tagged: #bold #markup
ADD COMMENT
Topic
Name
1+8 =