Files
openobserve/web/src/utils
Abhay Padamani d7a040e0fd fix: dashboard tooltip error (#7387)
### **User description**
- Try to lower the frequency of the following error.
- Mainly, it's due to echarts.
 

![image](https://github.com/user-attachments/assets/acf90182-7453-41dd-9899-192a3f4f81cd)


___

### **PR Type**
Bug fix, Enhancement


___

### **Description**
- Enable lazyUpdate and notMerge in setOption

- Wrap formatter functions with try-catch

- Provide safe default returns on errors

- Improve chart lazy loading and error resilience


___



### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>ChartRenderer.vue</strong><dd><code>Enable lazy chart
updates in ChartRenderer</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</dd></summary>
<hr>

web/src/components/dashboards/panels/ChartRenderer.vue

<li>Added <code>lazyUpdate: true</code> and <code>notMerge: true</code>
options to <code>chart.setOption</code><br> <li> Enabled legend updates
with lazy loading<br> <li> Updated initial chart set up calls for
performance


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/7387/files#diff-353fab39cd76197438814db862c4a506636ea7e15633ee92d9269adbd97fe67c">+6/-6</a>&nbsp;
&nbsp; &nbsp; </td>

</tr>
</table></td></tr><tr><td><strong>Error
handling</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>convertSQLData.ts</strong><dd><code>Add exception
handling in formatters</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

web/src/utils/dashboard/convertSQLData.ts

<li>Wrapped tooltip and formatter functions in try-catch<br> <li> Added
safe default return values on errors<br> <li> Used optional chaining for
null-safe access


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/7387/files#diff-88c0e865040a20b2c8bb7d77e7f6bd187a5b07c1645c120223bc9d59603752c3">+451/-368</a></td>

</tr>
</table></td></tr></tr></tbody></table>

___

> <details> <summary> Need help?</summary><li>Type <code>/help how to
...</code> in the comments thread for any questions about PR-Agent
usage.</li><li>Check out the <a
href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a>
for more information.</li></details>
2025-06-27 17:11:24 +05:30
..
2024-07-22 13:54:34 +05:30
2024-07-22 13:54:34 +05:30
2025-02-10 14:56:58 +05:30
2024-07-22 13:54:34 +05:30