Skip to content

Conversation

@Vaibhav91one
Copy link
Contributor

Problem

The chart view's Y-axis always starts at 0, making it difficult to visualize data with small variations around large baseline values.

For example, monitoring sensor data like:

  • Temperature: 99.7°C - 100.6°C (0.9°C range)
  • Pressure: 1012.8 - 1013.9 hPa (1.1 hPa range)

With the Y-axis scaled from 0-100, these small but important variations become nearly invisible.

Solution

Enable the ECharts scale: true option for the Y-axis configuration. This allows the chart to dynamically scale based on actual data values instead of forcing zero as the minimum.

Changes

  • Modified packages/web-console/src/js/console/quick-vis.ts
  • Added scale: true to the yAxis configuration in the chart options

Result

  • Charts now automatically scale to show the actual data range
  • Small variations in large values are clearly visible
  • No wasted chart space
  • Improved data visualization for monitoring scenarios

Testing

Tested with sensor data containing:

  • Temperature readings: 99.7-100.6°C
  • Pressure readings: 1012.8-1013.9 hPa

Before: Y-axis shows 0-100, data appears as flat line
After: Y-axis shows 99.7-100.6, variations are clearly visible

Fixes #45

@Vaibhav91one
Copy link
Contributor Author

Vaibhav91one commented Oct 30, 2025

Hi @emrberk. I have created a fresh PR. Apologies for the disturbances in the previous PR.

@emrberk emrberk self-requested a review October 30, 2025 07:39
@emrberk emrberk merged commit fb68532 into questdb:main Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Customisable chart range

2 participants