Dashboards & Visualizations

how to disable legends in chart using D3ChartView

mvaradarajam
Path Finder

Hi,

how to disable legends in chart,i am using D3Chart View,pla help me.

Tags (2)
0 Karma

guilmxm
Influencer

You have to manage it using JS, i managed it in some Django HTML views (using the new Web framework)

See:
http://answers.splunk.com/answers/112539/web-framework-django-and-3dchart-modifying-default-chart-se...

Example code:

        var chart = mvc.Components.getInstance('d3chart1');
        chart.settings.set("setup", function(chart){
        chart.color(d3.scale.category10().range());
        chart.staggerLabels(true);
        chart.showValues(true);
        });
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...