<?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 How to add annotations for non time based X-axis? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-annotations-for-non-time-based-X-axis/m-p/608403#M49906</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to add annotations to a line chart, where the x-axis is a simple Id ( 1, 2, 3,....), a field named "RunId".&amp;nbsp; Each event label then should display (on mouse hover) the content of the field "Info", which is extracted in the annotation search.&amp;nbsp;Both primary and annotation datasource include the field "RunId".&lt;BR /&gt;But no event is displayed, why ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"viz_jcq0L1f3": {
			"type": "viz.column",
			"dataSources": {
				"primary": "ds_bNZHw3eE",
				"annotation": "ds_annotation"
			},
			"encoding": {
				"annotationX": "annotation.RunId"
			},...
                  ...
               }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"ds_annotation": {
			"type": "ds.search",
			"options": {
				"query": "index=someTestIndex source=*runids.txt | rex field=_raw \" (?&amp;lt;RunId&amp;gt;\\d+)\" |rex field=_raw \"info=\\\"(?&amp;lt;Info&amp;gt;[^\\\"]+)\" | dedup RunId | table RunId, Info"
			},
			"name": "Annotation Search"
		},&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 14:35:29 GMT</pubDate>
    <dc:creator>AKo</dc:creator>
    <dc:date>2022-08-05T14:35:29Z</dc:date>
    <item>
      <title>How to add annotations for non time based X-axis?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-annotations-for-non-time-based-X-axis/m-p/608403#M49906</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to add annotations to a line chart, where the x-axis is a simple Id ( 1, 2, 3,....), a field named "RunId".&amp;nbsp; Each event label then should display (on mouse hover) the content of the field "Info", which is extracted in the annotation search.&amp;nbsp;Both primary and annotation datasource include the field "RunId".&lt;BR /&gt;But no event is displayed, why ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"viz_jcq0L1f3": {
			"type": "viz.column",
			"dataSources": {
				"primary": "ds_bNZHw3eE",
				"annotation": "ds_annotation"
			},
			"encoding": {
				"annotationX": "annotation.RunId"
			},...
                  ...
               }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"ds_annotation": {
			"type": "ds.search",
			"options": {
				"query": "index=someTestIndex source=*runids.txt | rex field=_raw \" (?&amp;lt;RunId&amp;gt;\\d+)\" |rex field=_raw \"info=\\\"(?&amp;lt;Info&amp;gt;[^\\\"]+)\" | dedup RunId | table RunId, Info"
			},
			"name": "Annotation Search"
		},&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 14:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-annotations-for-non-time-based-X-axis/m-p/608403#M49906</guid>
      <dc:creator>AKo</dc:creator>
      <dc:date>2022-08-05T14:35:29Z</dc:date>
    </item>
  </channel>
</rss>

