You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by Sathiyaseelan Velu <sa...@softsuave.com> on 2024/02/12 15:38:30 UTC

Help - Setting Different Base Values in ECharts Bar Chart

Hi Team,

I've been using echarts for a while now, and I must say, it's been
fantastic. Congratulations to all of you for creating such a wonderful
chart library.

I'm currently facing a challenge in setting different base values for the
bar chart. Specifically, I need to create a chart where values below 100
are considered negative and values above 100 are considered positive. By
default, echarts considers 0 as the base value, with values less than 0
being considered negative. However, I'm looking to achieve the scenario
described above.

I've attached some screenshots for reference.

Expected:[image: image.png]
 Sample:
[image: image.png]
Thanks in advance

Best regards
Sathiyaseelan Velu

-- 
 
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they are
 
addressed. If you have received this email in error please notify the 
system manager. Please note that any views or opinions presented in this
 
email are solely those of the author and do not necessarily represent 
those of the company. 

© Copyright softsuave.com <http://softsuave.com> | 
All Rights Reserved. 

Re: Help - Setting Different Base Values in ECharts Bar Chart

Posted by Ovilia <ov...@gmail.com>.
Hi,

I made a demo for you:
https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&code=MYewdgzgLgBATgUwIYBsAiSpJgXhgbQEYAmABgBoYyKZCBWGgDhoHYbDD2BmUgXQChQkWACMkEBLlqlSAbkHhoMACaZseRKgxYAdAFskABwAUy3AD4VMALQwxEgJTz-IQ1ACW4KQG9-MGAAeAIIB7hAAXDC-_v5QAJ6GCJEA5MCYCADmIHBxyeR-MapYkfjJALLgeTDJACoArghVyQDqCMpNNQAWdU0AYnDuTQDKmMN1YMkC_gC--f5xIWGR0THxiSkAbqgNeQX-SKEQADJIIggoy3sxAGbZBlBQCHCRYBYwrwDUduIIV9MFswKEgGCAiBCuKxiKjUcyhMDWSWqYjgyT-BQE01kQA

Hope that helps.

Thanks

*Ovilia*


On Tue, Feb 13, 2024 at 3:59 AM Sathiyaseelan Velu <
sathiyaseelan.velu@softsuave.com> wrote:

> Hi Team,
>
> I've been using echarts for a while now, and I must say, it's been
> fantastic. Congratulations to all of you for creating such a wonderful
> chart library.
>
> I'm currently facing a challenge in setting different base values for the
> bar chart. Specifically, I need to create a chart where values below 100
> are considered negative and values above 100 are considered positive. By
> default, echarts considers 0 as the base value, with values less than 0
> being considered negative. However, I'm looking to achieve the scenario
> described above.
>
> I've attached some screenshots for reference.
>
> Expected:[image: image.png]
>  Sample:
> [image: image.png]
> Thanks in advance
>
> Best regards
> Sathiyaseelan Velu
>
>
> ------------------------------
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
> Please note that any views or opinions presented in this email are solely
> those of the author and do not necessarily represent those of the company.
>
> © Copyright softsuave.com | All Rights Reserved.
>