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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...