Dashboards & Visualizations

Chart line thickness (line width)

sfefcu
Path Finder

It is possible to make the lines thicker in a standard splunk line chart?

I found the "charting.lineWidth" option in the Chart Configuration Reference at http://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference.

However, when I add that to my XML, as such: <option name="charting.lineWidth">3</option>

Then I get the following: Warning on line 194: Unknown option name="charting.lineWidth" for node="chart"

Thanks in advance for your help.

0 Karma

thuhuongle
Explorer

I am using SPUNK7.3.0 and still can not using this properties. Any one have found a solution?

//create mylinechart
				var mylinechart = new ChartView({
					"id": "chart1",
					"charting.axisLabelsX.majorLabelStyle.rotation": "-45",
					"charting.axisTitleX.visibility": "visible",
					"charting.axisTitleY.visibility": "visible",
					"charting.chart": "line",
					"charting.drilldown": "all", //enable drilldown
					"charting.legend.placement": "none",
					"charting.fontColor": "#123456",
					"charting.seriesColors": '["#006699","#117711"]',
					"charting.backgroundColor": "#f8f8f8",
					"charting.lineWidth": "5px",
					"managerid": "search1",
					"el": $('#chart1')
				}, { tokens: true, tokenNamespace: "submitted" }).render();

 5px or 5.5 : un changeable the fix line width

0 Karma

cmerriman
Super Champion

@harsmarvania is correct. Line thickness, along with line styles and a few other visualizations weren't introduced until Splunk 7.0.0.

http://docs.splunk.com/Documentation/Splunk/7.0.0/ReleaseNotes/MeetSplunk
http://docs.splunk.com/Documentation/Splunk/7.0.0/Viz/ChartConfigurationReference

If you look up at the top right corner of the documentation (or in the URL) you can see the version of Splunk the documentation is referring to. I'd change it to 6.5.2 when you're browsing through documentation so you know what's available in that version.

If you're thinking about upgrading, here is some good documentation to go over before doing so:
http://docs.splunk.com/Documentation/Splunk/7.0.0/Installation/AboutupgradingREADTHISFIRST

harsmarvania57
Ultra Champion

Which version of Splunk are you running?

0 Karma

sfefcu
Path Finder

Splunk Enterprise 6.5.2

0 Karma

harsmarvania57
Ultra Champion

I am able to save this configuration in 6.4 and 6.6 however no effect in Graph. While looking at documentation they have provided this detail in Splunk 7 documentation so it looks like this feature introduced in Splunk 7 but I'll keep this as comment so someone else from community can help.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...