Dashboards & Visualizations

how do i change jschart to flashchart?

testAnalysis
Explorer

I added < option name="charting.scaleX">1< option>
but it didnt do anything

< param name="savedSearch">BlahBlah

< module name="HiddenFieldPicker">

< param name="strictMode">True

< module name="JobProgressIndicator">

< module name="EnablePreview">

< param name="enable">True

< param name="display">False

< module name="HiddenChartFormatter">

< param name="charting.chart.stackMode">stacked

< param name="charting.chart">bar

< module name="JSChart">

< option name="charting.scaleX">1

< param name="width">100%

< module name="Gimp"/>


The chart is still JSChart and it wont change it to FlashChart.
I want to switch it because JSChart truncates my results also It wont allow me to do bar color change for each series. Please Help

0 Karma
1 Solution

ChrisG
Splunk Employee
Splunk Employee

It might be truncating your results because your data set is large; see About JSChart in the Splunk Data VIsualizations manual, which states:

You can override the truncation limit for charts rendered with JSChart by changing the value of the charting.chart.resultTruncationLimit property on a per-chart basis. Note that this property is only available for panels rendered with JSChart. Also, be aware that increasing this truncation limit can have a negative effect on dashboard performance.

View solution in original post

BobM
Builder

I would try the other method given by ChrisG first as JS is more efficient but changing the line
<module name="JSChart"> to <module name="FlashChart"> will make the panel render using flash. I also can't guarantee all the param's work identically but they should be close.

ChrisG
Splunk Employee
Splunk Employee

Thanks, BobM...I clear forgot to mention that...too focused on the truncation! 🙂 The Custom chart configuration reference in the Splunk Data Visualizations manual shows which properties are supported by JSChart: http://docs.splunk.com/Documentation/Splunk/5.0.2/Viz/CustomChartingConfig-ChartLegend.

0 Karma

ChrisG
Splunk Employee
Splunk Employee

It might be truncating your results because your data set is large; see About JSChart in the Splunk Data VIsualizations manual, which states:

You can override the truncation limit for charts rendered with JSChart by changing the value of the charting.chart.resultTruncationLimit property on a per-chart basis. Note that this property is only available for panels rendered with JSChart. Also, be aware that increasing this truncation limit can have a negative effect on dashboard performance.

testAnalysis
Explorer

yup adjusting the truncation limit fixed the issue

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!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

Ready to make your IT operations smarter and more efficient? Discover how to automate Splunk alerts with Red ...