Hi,
I'm using the following to successfully display Splunk charts on my external website via the JavaScript SDK:
splunkjs.UI.ready(chartToken, function () {
var chart = new splunkjs.UI.Charting.Chart($(element), splunkjs.UI.Charting.ChartType.LINE, false);
chart.setData(results, {
"chart.stackMode": "default",
"legend.placement": "bottom",
});
console.log("Chart: ", chart);
chart.draw();
});
I'm having a really hard time figuring out how to change simple things like the X & Y axis labels, set the min & max scale, etc.
Does anyone have a code example doing some of those things?
Any help would be appreciated.
... View more