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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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 ...