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 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...