helgasoft commented on issue #7937:
URL: https://github.com/apache/echarts/issues/7937#issuecomment-2136132398

   > It works with your specific data which has all values for all series.
   
   yes @gggdomi. And "incorrect results" are due to missing values which 
could/should be fixed by data preprocessing. 
   
[Demo](https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeBYAULTsAeBBbEAzgFzJgCeIApqQOSQC2VtAvgDTpazn5GlLtOWADZUA5lWgATfrEEYshKgCcIVErADaqBV0zQAhk1IAiAyY669Ug2AOlNmgIxsnAJgAMAXTZa3bT29fTQBmVwBWIK0AFjYADijNcLYAdkSANlcnRJS2aABXYWEfLTjXEO8fIT1YCmo6ACMDZVpLGsxCOwBjAGs6GGZquV8ddthDY1gTBoshrhs7B2dXTxLNf0C1sKdItdiEteSnY7XM45zyxLKCoq8qqy46mlhaJpa29s6DXv7oQasWF50CwANxAA)
 with missing values added.
   
   ### FAQ: ECharts axis types
   ECharts has four [axis 
types](https://echarts.apache.org/en/option.html#xAxis.type) available - 
_value_, _category_, _time_ and _log_.
   - category is a **discrete** axis with individual values
   - time and value are **continuous** axes with a range of values without gaps
   - log is a non-linear axis dealing with very-large-range values
   
   **Character data** are naturally discrete and can only be represented on a 
_category_ axis. 
   Examples:  ```['Peru','Cuba','Japon',...]``` or 
```['Mon','Tue','Wed',...]``` or ```['TypeA','TypeB',...]```.
   **Numerical data** is usually continuous, like temperature, price or 
distance. 
   **Time data** is also continuous, with resolution in minutes, days or years.
    
   All axis types allow for **missing data**, but present them differently. For 
instance
   A bar chart with ```data:[['Feb',22], ['Oct',44]]``` on a **category** axis 
will present them side-by-side, 
   but ```data:[['2024-02',22], ['2024-10',44]]``` on a **time** axis will show 
continuous time without data in-between.
   Missing time data, as null or interpolated values, could be added in a 
**data pre-processing** step.
   Data transformation is a developer's task. Often data has to be modified to 
meet the needs of a chosen charting library and not the other way around.
   
   **Log axis** is not suitable for stacked charts. A stacked chart relies on a 
linear axis to show proportions, but log axis is not linear.
   
   ---


-- 
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: commits-unsubscr...@echarts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to