<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to change the marker shape in a line chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324433#M20927</link>
    <description>&lt;P&gt;It does not worth the efforts if it changes all. The whole point is to mimic Excel plot with different markers. I guess most can live with different colors and dash styles.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 20:11:51 GMT</pubDate>
    <dc:creator>Dev999</dc:creator>
    <dc:date>2017-10-24T20:11:51Z</dc:date>
    <item>
      <title>How to change the marker shape in a line chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324429#M20923</link>
      <description>&lt;P&gt;In a line chart, I can add markers to the line. In a multi-line chart, I would like to have different markers for each line. &lt;/P&gt;

&lt;P&gt;I am at Splunk 6.5.1. From an old document &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/AdvancedDev/CustomChartingConfig-FontColorBrushPalette#diamond_shape"&gt;Splunk 6.2.3 document&lt;/A&gt; it seems possible at that version and I guess Splunk would not take the feature out in newer versions, though it's possible:&lt;/P&gt;

&lt;P&gt;"You use shape properties to define shape objects for shape palettes, which are designed primarily to enable the assignation of specific shapes to chart markers. &lt;STRONG&gt;For example, you could arrange for each series in a line chart to have markers of different shapes&lt;/STRONG&gt;. To do this you would define a list shape palette that sets up a specific shape object for each series, and then assign that to the markerShapePalette property."&lt;/P&gt;

&lt;P&gt;Has anyone made this work in 6.5? &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Here is a sample code for a single line example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;test_chart_shape&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_audit earliest=-2h@h  (action=quota OR aciton=search OR action=accelerate_search) | stats count by action&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showMarkers"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.markerSize"&amp;gt;5&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Oct 2017 01:53:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324429#M20923</guid>
      <dc:creator>Dev999</dc:creator>
      <dc:date>2017-10-24T01:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the marker shape in a line chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324430#M20924</link>
      <description>&lt;P&gt;@Dev99, what you are referring from version 6.2 is Advanced XML Development, which has been deprecated way back.&lt;/P&gt;

&lt;P&gt;In &lt;CODE&gt;Splunk Enterprise 7.0&lt;/CODE&gt; there is a new chart enhancement which allows us to select different styles for different series through new Simple XML Chart Configuration called &lt;CODE&gt;charting.fieldDashStyles&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Foe example if you have two series &lt;CODE&gt;field1&lt;/CODE&gt; and &lt;CODE&gt;field2&lt;/CODE&gt; you can apply the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.fieldDashStyles"&amp;gt;{"field1":"solid", "field2":"shortDash"}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can check out the same in Splunk 7.0 Overview App from Splunkbase &lt;BR /&gt;
or read the documentation for Simple XML Chart Configuration and various series style options: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference#General_chart_properties"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference#General_chart_properties&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 03:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324430#M20924</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-24T03:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the marker shape in a line chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324431#M20925</link>
      <description>&lt;P&gt;Thanks for clarification. I found your other post with the workaround for dash style and works like a charm: &lt;A href="https://answers.splunk.com/answers/568412/using-chartinglinedashstyle-to-edit-only-one-line.html"&gt;change dash style&lt;/A&gt;. It's not for marker but it's better than nothing.  I bet with that kind of knowledge you can change the marker style as well? &lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 15:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324431#M20925</guid>
      <dc:creator>Dev999</dc:creator>
      <dc:date>2017-10-24T15:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the marker shape in a line chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324432#M20926</link>
      <description>&lt;P&gt;@Dev999, do up vote the answers &lt;A href="https://answers.splunk.com/answers/568412/using-chartinglinedashstyle-to-edit-only-one-line.html"&gt;https://answers.splunk.com/answers/568412/using-chartinglinedashstyle-to-edit-only-one-line.html&lt;/A&gt; if that helped you. As stated, since the CSS override is built in to Splunk Enterprise 7.0, I would expect Splunkers would not need the manual CSS Override to apply different Line Dash Styles for different series in near future unless they are on any of previous versions.&lt;/P&gt;

&lt;P&gt;Coming back to Markers in HighCharts, I will try to find some time to figure out if there is a way with CSS and JS Extension for changing the Chart Markers. Following are the two challenges:&lt;/P&gt;

&lt;P&gt;1) While Highcharts supports several Marker Types for each individual series and even Custom images using URL, Splunk applies only one Marker to all series. Which means even if we changed the Marker type from &lt;CODE&gt;circle&lt;/CODE&gt; to &lt;CODE&gt;triangle&lt;/CODE&gt; using &lt;CODE&gt;svg path&lt;/CODE&gt;, it will apply to all series not individual/specific.&lt;BR /&gt;
&lt;A href="http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-marker-symbol/"&gt;http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-marker-symbol/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;2) SVG to build/plot Markers is generated dynamically. The SVG path values, which draw the Markers at required positions on the chart have both location and shape details. Which we can change the shape through CSS Override, it will be difficult (not sure even if possible or not). Even if it worked it would be crooked way of drawing chart first with Circle and then overriding with Triangle.&lt;/P&gt;

&lt;P&gt;Considering above two pot-holes, if you have active Splunk Entitlement, you can put in an enhancement request. I know there was a previous issue open for several years around the same issue with one static showMarker being available for all series, because of which series being plotted could not be distinguished easily. However the question got archived due to age.&lt;/P&gt;

&lt;P&gt;Second option would be time consuming but you can use Splunk's Custom Visualization API to create your own Highcharts Line Chart with options for showMarkers.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 17:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324432#M20926</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-24T17:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the marker shape in a line chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324433#M20927</link>
      <description>&lt;P&gt;It does not worth the efforts if it changes all. The whole point is to mimic Excel plot with different markers. I guess most can live with different colors and dash styles.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 20:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-the-marker-shape-in-a-line-chart/m-p/324433#M20927</guid>
      <dc:creator>Dev999</dc:creator>
      <dc:date>2017-10-24T20:11:51Z</dc:date>
    </item>
  </channel>
</rss>

