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

Which version of Splunk are you running?

0 Karma

sfefcu
Path Finder

Splunk Enterprise 6.5.2

0 Karma

harsmarvania57
SplunkTrust
SplunkTrust

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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...