Archive

Second Y-axis not showing tickmarks

Explorer

I have a chart with 3 y-axes which displays the data as expected, but the right-hand axis shows only the title, with no tickmarks. How do I make tickmarks visible?

XML below

  <module name="HiddenChartFormatter">
     <param name="charting.myBrush1">solidFill</param>
     <param name="charting.myBrush1.color">0xcb3834</param>
     <param name="charting.myBrush2">solidFill</param>
     <param name="charting.myBrush2.color">0x36ad21</param>
     <param name="charting.myBrush3">solidStroke</param>
     <param name="charting.myBrush3.color">0xfae300</param>
     <param name="charting.myBrush3">solidStroke</param>
     <param name="charting.myBrush3.thickness">3</param>
     <param name="charting.myBrushPalette1">list</param>
     <param name="charting.myBrushPalette1.brushes">[@myBrush1,@myBrush2]</param>
     <param name="charting.myBrushPalette2">list</param>
     <param name="charting.myBrushPalette2.brushes">[@myBrush3]</param>
     <param name="charting.chart.lineBrushPalette">@myBrushPalette2</param>
     <param name="charting.chart2.areaBrushPalette">@myBrushPalette1</param>
     <param name="charting.chart">line</param>
     <param name="charting.chart2">area</param>
     <param name="charting.chart2.stackMode">stacked</param>
     <option name="charting.chart.columnSpacing">0</option>
     <param name="charting.legend.placement">none</param>
     <param name="charting.primaryAxisTitle.text">Date/Time</param>
     <param name="charting.legend.masterLegend"></param>

     <param name="charting.axisY.scale">linear</param>
     <param name="charting.axisY.minimumNumber">0</param>
     <param name="charting.axisTitleY.text">secs</param>
     <param name="charting.axisTitleY.placement">left</param>
     <param name="charting.axisY.minimumNumber">0</param>
    <param name="charting.axisY.maximumNumber">16</param>
     <option name="charting.primaryAxisLabels.majorLabelVisibility">show</option>
     <option name="primaryAxisLabels.majorTickVisibility">show</option>
     <option name="primaryAxisLabels.minorTickVisibility">show</option>
     <option name="secondaryAxisLabels.majorTickVisibility">show</option>
     <option name="secondaryAxisLabels.minorTickVisibility">show</option>

     <param name="charting.axisY2">#axisY</param>
     <param name="charting.axisY2">numeric</param>
     <param name="charting.axisY2.minimumNumber">0</param>
     <param name="charting.axisY2.maximumNumber">10</param>
     <param name="charting.axisLabelsY2">#axisLabelsY</param>
     <param name="charting.axisLabelsY2.axis">@axisY2</param>
     <param name="charting.axisTitleY2">#axisTitleY</param>
     <param name="charting.axisTitleY2.text">pageHits</param>
     <param name="charting.axisTitleY2.placement">right</param>

     <param name="charting.data0">results</param>
     <param name="charting.data0.jobID">@data.jobID</param>

     <param name="charting.data1">view</param>
     <param name="charting.data1.table">@data0</param>
     <param name="charting.data1.columns">[0,1]</param>

     <param name="charting.data2">view</param>
     <param name="charting.data2.table">@data0</param>
     <param name="charting.data2.columns">[0,2,3]</param>

     <param name="charting.chart.data">@data1</param>
     <param name="charting.chart2.data">@data2</param>
     <param name="charting.chart.axisY">@axisY</param>
     <param name="charting.chart2.axisY">@axisY2</param>
     <param name="charting.chart2.layout.splitSeries">False</param>
     <param name="charting.chart2.layout.axisVisibility">show</param>

     <param name="charting.layout.charts">[@chart,@chart2]</param>
     <param name="charting.layout.axisTitles">[@axisTitleX,@axisTitleY,@axisTitleY2]</param>

     <param name="charting.backgroundColor">0x000000</param>
     <param name="charting.fontColor">0xFFFFFF</param>
     <param name="charting.fontSize">16</param>
     <param name="charting.chart.axisY.includeZero">true</param>

     <module name="FlashChart">
        <param name="width">98%</param>
        <param name="height">340px</param>
        <param name="maxResultCount">5000</param>
     </module>

  </module>

Any help much appreciated

0 Karma

Influencer

Welcome to the joys of non-standard charting !!

Tickmarks are part of axisLabelY2, which you've defined, but not added as a label object in charting.layout.axisLabels

You've done the right thing for the extra axisTitleY2 here :

<param name="charting.layout.axisTitles">[@axisTitleX,@axisTitleY,@axisTitleY2]</param>

You need to do the same for axisLabels

<param name="charting.axisLabelsY2.placement">right</param>
<param name="charting.layout.axisLabels">[@axisLabelsX,@axisLabelsY,@axisLabelsY2]</param>

unless you explicitly define the axisLabels, it'll use the default, which is just X and Y (not Y2)

Also, you need to move the labels to the right (1st line)

0 Karma

Influencer

Out of interest - did this fix your problem ? Its hard to test stuff like this without data

0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!