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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...