Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to specify x-axis intervals on ChartView (type column)

$
0
0
Hi all, I am using the object ChartView (type column) however i am not able to set the intervals (units) in AXIS X for 1 hour. I am executing the query (timechart span=1h sum("XXXXXX") by "YYYYYY") however the data are being displayed with 4 hours of difference between each unit in AXIS X (Unit tick like 4 AM , 8 AM, 12 PM, 4 PM....). In the Javascript i have the below code: Columnchart = new ChartView({ id: "chart1", managerid: SearchManager.name, type: "column", "charting.axisTitleX.text": "Last hours", "charting.chart.showDataLabels": "all", "charting.legend.placement": "none", "charting.scaleX": 1, "charting.axisLabelsX.majorLabelVisibility": "show", "charting.axisLabelsX.majorTickVisibility": "show", "charting.axisLabelsX.minorTickVisibility": "show", "charting.axisX.includeZero": true, "charting.axisY.includeZero": true, "charting.axisLabelsX.majorUnit": "0H30M0S" , "charting.chart.columnSpacing" : 2, el: $('#modalVizualization') }).render(); I believe that the property "majorUnit" is responsible for this configuration, riight? But it is not reflecting on the graph. Thanks and regards, Danillo Pavan

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>