curious86 opened a new pull request, #24492:
URL: https://github.com/apache/superset/pull/24492

   ### SUMMARY
   The current implementation of the time-series charts in ECharts seems to 
have a limitation in properly rendering big numbers. As a result, the display 
of big numbers in the chart is broken.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   Before:
   <img width="899" alt="68d58a51-b0f2-42b0-b191-f35372d8b5dd" 
src="https://github.com/apache/superset/assets/97945303/c403ef96-aa18-49be-84db-8457ef55b071";>
   
   After:
   <img width="904" alt="19053635-9d5a-42e4-81a0-cd2d7aa51790" 
src="https://github.com/apache/superset/assets/97945303/a5bf5b93-507f-4792-9d0f-05e5e5f539f1";>
   
   
   ### TESTING INSTRUCTIONS
   To replicate the issue with big number display in time series charts, you 
can create a time series chart that includes data points with large numeric 
values. Here is an example SQL query that can be executed in SQL Lab to 
generate such data:
   
   ```
   select 9223372036854775807 as huge_number, 'abc' as str union all
   select 9223372036854775807.5 as huge_number, 'foo' as str union all
   select 92233720368547758071111 as huge_number, 'bar' as str
   ```
   
   1. After executing the SQL query in SQL Lab and getting the result set, 
click on the "Create Chart" button.
   2. In the chart creation page, switch to the "LINE CHART" option.
   3. On the chart configuration panel, select the 'str' column for the x-axis.
   4. Add the "SUM(huge_number)" column to the y-axis to represent the 
aggregated big numbers.
   5. Update the chart to apply the changes and visualize the data.
   6. By performing these steps, you will be able to replicate the issue where 
the ECharts library struggles to properly render the big number values on the 
time series chart.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to