### What happened?
On Time series panels, if **Decimals** is set to `0` and **N…o value** string is defined, the noValue string is displayed on interleaving y-axis ticks if they don't line up with round integers.
![Screenshot 2023-12-05 09-34-26 novalue](https://github.com/grafana/grafana/assets/3270755/8f7de88d-fe40-4c9d-ae6e-16626b4c17fb)
### What did you expect to happen?
When **Decimals** is set to `0`, I am expecting to see y-axis ticks only on integer values, and no appearances of the noValue string.
### Did this work before?
Unknown.
### How do we reproduce it?
1. Create a Time Series panel, possibly using TestData DB.
2. In the panel **Standard options**, Set **Decimals** to `0`.
3. Set the **No value** string to a non-empty value.
### Is the bug inside a dashboard panel?
| Key | Value |
|--|--|
| Panel | timeseries @ 10.2.2 |
| Grafana | 10.2.2 (161e3cac5075540918e3a39004f2364ad104d5bb) // Enterprise |
<details><summary>Panel debug snapshot dashboard</summary>
```json
{
"panels": [
{
"type": "timeseries",
"title": "Reproduced with embedded data",
"gridPos": {
"h": 13,
"w": 15,
"x": 0,
"y": 0
},
"datasource": {
"type": "grafana",
"uid": "grafana"
},
"id": 2,
"targets": [
{
"refId": "A",
"datasource": {
"type": "grafana",
"uid": "grafana"
},
"queryType": "snapshot",
"snapshot": [
{
"schema": {
"refId": "A",
"meta": {
"typeVersion": [
0,
0
],
"custom": {
"customStat": 10
}
},
"fields": [
{
"name": "time",
"type": "time",
"typeInfo": {
"frame": "time.Time",
"nullable": true
},
"config": {
"interval": 120000
}
},
{
"name": "A-series",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"labels": {},
"config": {}
}
]
},
"data": {
"values": [
[
1701794608606,
1701794728606,
1701794848606,
1701794968606,
1701795088606,
1701795208606,
1701795328606,
1701795448606,
1701795568606,
1701795688606,
1701795808606,
1701795928606,
1701796048606,
1701796168606,
1701796288606,
1701796408606,
1701796528606,
1701796648606,
1701796768606,
1701796888606,
1701797008606,
1701797128606,
1701797248606,
1701797368606,
1701797488606,
1701797608606,
1701797728606,
1701797848606,
1701797968606,
1701798088606
],
[
51.7657132518252,
51.82688360143546,
51.55925533249092,
51.06316093186675,
51.15325382450281,
50.805500143852655,
51.23623435906202,
50.766173718717724,
50.64022864069818,
50.98663249567753,
50.84500838548877,
50.445571039883,
50.188339596228985,
49.87204195291046,
49.535114174283905,
49.22288149049888,
49.02600378900394,
48.89895955763965,
49.38684183048726,
49.47055178356926,
49.58777739536501,
49.962878419060125,
49.58316428440146,
49.40425513212283,
49.00333951610783,
48.58990047901042,
48.51348264820573,
48.77515917725303,
48.564285322812076,
48.92516412430213
]
]
}
}
]
}
],
"options": {
"tooltip": {
"mode": "single",
"sort": "none"
},
"legend": {
"showLegend": true,
"displayMode": "list",
"placement": "bottom",
"calcs": []
}
},
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "line",
"lineInterpolation": "linear",
"barAlignment": 0,
"lineWidth": 1,
"fillOpacity": 0,
"gradientMode": "none",
"spanNulls": false,
"insertNulls": false,
"showPoints": "auto",
"pointSize": 5,
"stacking": {
"mode": "none",
"group": "A"
},
"axisPlacement": "auto",
"axisLabel": "",
"axisColorMode": "text",
"axisBorderShow": false,
"scaleDistribution": {
"type": "linear"
},
"axisCenteredZero": false,
"hideFrom": {
"tooltip": false,
"viz": false,
"legend": false
},
"thresholdsStyle": {
"mode": "off"
}
},
"color": {
"mode": "palette-classic"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": null,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"decimals": 0,
"noValue": "No value"
},
"overrides": []
},
"pluginVersion": "10.2.2",
"maxDataPoints": 30
},
{
"gridPos": {
"h": 7,
"w": 9,
"x": 15,
"y": 0
},
"id": 5,
"options": {
"content": "<table width=\"100%\">\n <tr>\n <th width=\"2%\">Panel</th>\n <td >timeseries @ 10.2.2</td>\n </tr>\n <tr>\n <th>Queries</th>\n <td>A[grafana-testdata-datasource]</td>\n </tr>\n \n <tr><th>Data</th><td> 1 frames, 2 fields, 30 rows </td></tr>\n \n <tr>\n <th>Grafana</th>\n <td>10.2.2 (161e3cac5075540918e3a39004f2364ad104d5bb) // Enterprise</td>\n </tr>\n </table>",
"mode": "html"
},
"title": "Debug info",
"type": "text"
},
{
"id": 6,
"title": "Original Panel JSON",
"type": "text",
"gridPos": {
"h": 13,
"w": 9,
"x": 15,
"y": 7
},
"options": {
"content": "{\n \"type\": \"timeseries\",\n \"title\": \"Panel Title\",\n \"gridPos\": {\n \"x\": 0,\n \"y\": 0,\n \"w\": 12,\n \"h\": 8\n },\n \"datasource\": {\n \"uid\": \"P53465F745837BCFD\",\n \"type\": \"grafana-testdata-datasource\"\n },\n \"id\": 1,\n \"targets\": [\n {\n \"scenarioId\": \"random_walk\",\n \"seriesCount\": 1,\n \"datasource\": {\n \"type\": \"grafana-testdata-datasource\",\n \"uid\": \"P53465F745837BCFD\"\n },\n \"refId\": \"A\"\n }\n ],\n \"options\": {\n \"tooltip\": {\n \"mode\": \"single\",\n \"sort\": \"none\"\n },\n \"legend\": {\n \"showLegend\": true,\n \"displayMode\": \"list\",\n \"placement\": \"bottom\",\n \"calcs\": []\n }\n },\n \"fieldConfig\": {\n \"defaults\": {\n \"custom\": {\n \"drawStyle\": \"line\",\n \"lineInterpolation\": \"linear\",\n \"barAlignment\": 0,\n \"lineWidth\": 1,\n \"fillOpacity\": 0,\n \"gradientMode\": \"none\",\n \"spanNulls\": false,\n \"insertNulls\": false,\n \"showPoints\": \"auto\",\n \"pointSize\": 5,\n \"stacking\": {\n \"mode\": \"none\",\n \"group\": \"A\"\n },\n \"axisPlacement\": \"auto\",\n \"axisLabel\": \"\",\n \"axisColorMode\": \"text\",\n \"axisBorderShow\": false,\n \"scaleDistribution\": {\n \"type\": \"linear\"\n },\n \"axisCenteredZero\": false,\n \"hideFrom\": {\n \"tooltip\": false,\n \"viz\": false,\n \"legend\": false\n },\n \"thresholdsStyle\": {\n \"mode\": \"off\"\n }\n },\n \"color\": {\n \"mode\": \"palette-classic\"\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"value\": null,\n \"color\": \"green\"\n },\n {\n \"value\": 80,\n \"color\": \"red\"\n }\n ]\n },\n \"decimals\": 0,\n \"noValue\": \"No value\"\n },\n \"overrides\": []\n },\n \"pluginVersion\": \"10.2.2\",\n \"maxDataPoints\": 30\n}",
"mode": "code",
"code": {
"language": "json",
"showLineNumbers": true,
"showMiniMap": true
}
}
},
{
"id": 3,
"title": "Data from panel above",
"type": "table",
"datasource": {
"type": "datasource",
"uid": "-- Dashboard --"
},
"gridPos": {
"h": 7,
"w": 15,
"x": 0,
"y": 13
},
"options": {
"showTypeIcons": true
},
"targets": [
{
"datasource": {
"type": "datasource",
"uid": "-- Dashboard --"
},
"panelId": 2,
"withTransforms": true,
"refId": "A"
}
]
}
],
"schemaVersion": 37,
"title": "Debug: Panel Title // 2023-12-05 10:43:33",
"tags": [
"debug",
"debug-timeseries"
],
"time": {
"from": "2023-12-05T16:43:33.527Z",
"to": "2023-12-05T17:43:33.527Z"
}
}
```
</details>
### Environment (with versions)?
Grafana: v10.2.2 (standalone from compiled tarball)
OS: Ubuntu
Browser: Firefox 119.0.1
### Grafana platform?
None
### Datasource(s)?
TestData DB