What is your search string behind the viz? It could be as simple as appending the search with...
| fields - overlay_field_name
index=
| bucket span=1s _time | stats count by _time | timechart max(count) AS Peak_TPS span=1d
| eval overlay=10
I want to remove the number display on overlay
This is confusing because your search specifically sets the values you want to remove. Simple solution is to remove the last pipe and eval of the additional field. Assuming you need that for some alternate reason then I would recommend.
1) Create base search "ds_base" don't include the pipe and eval of the overlay
2) Create the viz and map the data source to the base search
3) Create a chain search which has the pipe and eval of the overlay field and map it to the base
4) Map the alternate need to the chain search as the source
If you are using Classic/SimpleXML dashboards, you can do this with CSS.
For this you need to give your panel an id (so it gets tagged so CSS can select it), then you need to know the order of the series in the charts and they are numbered. For example, if you name your panel "panel_one", and your Total was the second series (index 1), you could do something like this
<panel id="panel_one">
<html depends="$alwaysHide$">
<style>
#panel_one svg g.highcharts-data-labels.highcharts-series-1
{
display: none !important;
}
</style>
</html>
<chart>
When using dashboard studio currently there is no option for this.
dataValuesDisplay | ("off" | "all" | "minmax") | off | Specify whether chart should display no labels, all labels, or only the min and max labels. |
https://docs.splunk.com/Documentation/SplunkCloud/9.2.2406/DashStudio/chartsBar
I have even tried putting the overlay into the y2 axis and the dataValuesDisplay is a higher level option so impacts all axis.
{
"type": "splunk.column",
"dataSources": {
"primary": "ds_TNxdC2O9"
},
"containerOptions": {},
"showProgressBar": false,
"showLastUpdated": false,
"title": "Column Chart",
"description": "Overlay Test",
"options": {
"y": "> primary | frameBySeriesNames('regular','_span')",
"y2": "> primary | frameBySeriesNames('overlay','_span')",
"overlayFields": [
"overlay"
],
"dataValuesDisplay": "all"
},
"context": {}
}
Yes, Studio is not a good choice for anything vaguely sophisticated!