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
Get Updates on the Splunk Community!

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

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...