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