-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When do you introduce zooming for xaxis.type = 'category'? #1195
Comments
I want to highlight how some other parts of 'datetime' are severely broken.
|
Hi @michaeljakob
I spent last week to allow zooming in the category axis and faced some issues, but most of them will be resolved soon. Here is what's coming in the next release (hopefully tonight or tomorrow once I test it enough)
The reason why I want to disable zooming for bar charts by default is to prevent a breaking change. Thanks for your patience. |
Hi Juned, |
Hey Juned,
I saw that there was an update to vue-apexchart (1.5.2) yesterday. I tried changing xaxis.type from datetime to 'category', but I still wasn't able to see zooming here.
*Could you please ping me when zooming will be enabled in vue-apexcharts? :D*
FYI our 'zooming code' (works great with datetime!):
zoom: {
type: 'x' ,
enabled: true ,
autoScaleYaxis: true
},
toolbar: {
show: (window.innerWidth > 700 ),
autoSelected: 'zoom' ,
tools: {
zoomin: false ,
zoomout: false ,
pan: false ,
zoom: true , //'<svg/>', // don't show any icon, but still enable zoom :)
},
…On Wed, Jan 08, 2020 at 8:48 PM, Juned Chhipa < ***@***.*** > wrote:
Here's a GIF. You can see the bars get cropped in the zooming. I haven't
been able to find a good solution for it yet, but some manual workarounds
should make it work.
cat-zoom (
https://user-images.githubusercontent.com/17950663/71982826-71b75e00-324b-11ea-864a-d2ec71b66356.gif
)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (
#1195?email_source=notifications&email_token=AA3OKG7MCKE5FHZVO72T3JLQ4XKTXA5CNFSM4KEIFZ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIMPU4I#issuecomment-572062321
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AA3OKG6UFHNAQXQSXIKMKLLQ4XKTXANCNFSM4KEIFZ6A
).
|
Hi Michael,
For bar charts, you will have to manually enable zooming chart: {
zoom: {
enabled: true
}
},
xaxis: {
tickPlacement: 'on'
} Unfortunately, the zooming is still not perfect and I am still working on the margin/padding issues. Once it is done, I will close this thread and update it here. |
Hi Juned,
I've updated both apexcharts (3.14.0) and vue-apexcharts (1.5.2), yet I can't find the proper controls for zooming. Do you have an example for that?
I have attached our production code (stripped down to the relevant parts) where we did not get the zooming controls visible, nor the "drag and drop with mouse to zoom in" to be enabled. The padding issue you mentioned wouldn't be a huge problem for us :).
…On Sun, Jan 12, 2020 at 10:13 PM, Juned Chhipa < ***@***.*** > wrote:
Hi Michael,
You will have to update the core apexcharts version to 3.14.0 from npm - https:/
/ www. npmjs. com/ package/ apexcharts (
https://www.npmjs.com/package/apexcharts )
npm install apexcharts --save
For bar charts, you will have to manually enable zooming
chart : { zoom : { enabled : true } }, xaxis : { tickPlacement : ' on ' }
Unfortunately, the zooming is still not perfect and I am still working on
the margin/padding issues. Once it is done, I will close this thread and
update it here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (
#1195?email_source=notifications&email_token=AA3OKG4PMVX3BVVYFFDJIKTQ5MXQHA5CNFSM4KEIFZ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIW4HUI#issuecomment-573424593
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AA3OKG63FEJDAYHSSSSVLALQ5MXQHANCNFSM4KEIFZ6A
).
|
Sure,
I am going to update the docs with some examples soon.
On Sun, 12 Jan 2020 at 10:30 PM, Michael Jakob <notifications@github.com>
wrote:
… Hi Juned,
I've updated both apexcharts (3.14.0) and vue-apexcharts (1.5.2), yet I
can't find the proper controls for zooming. Do you have an example for that?
I have attached our production code (stripped down to the relevant parts)
where we did not get the zooming controls visible, nor the "drag and drop
with mouse to zoom in" to be enabled. The padding issue you mentioned
wouldn't be a huge problem for us :).
On Sun, Jan 12, 2020 at 10:13 PM, Juned Chhipa < ***@***.***
> wrote:
>
>
>
> Hi Michael,
> You will have to update the core apexcharts version to 3.14.0 from npm -
https:/
> / www. npmjs. com/ package/ apexcharts (
> https://www.npmjs.com/package/apexcharts )
>
> npm install apexcharts --save
>
> For bar charts, you will have to manually enable zooming
>
> chart : { zoom : { enabled : true } }, xaxis : { tickPlacement : ' on ' }
>
>
> Unfortunately, the zooming is still not perfect and I am still working on
> the margin/padding issues. Once it is done, I will close this thread and
> update it here.
>
>
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub (
>
#1195?email_source=notifications&email_token=AA3OKG4PMVX3BVVYFFDJIKTQ5MXQHA5CNFSM4KEIFZ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIW4HUI#issuecomment-573424593
> ) , or unsubscribe (
>
https://github.com/notifications/unsubscribe-auth/AA3OKG63FEJDAYHSSSSVLALQ5MXQHANCNFSM4KEIFZ6A
> ).
>
>
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1195?email_source=notifications&email_token=AEI6PR4Z77TKJB3Z6AGLNLTQ5NEDTA5CNFSM4KEIFZ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIW62VI#issuecomment-573435221>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEI6PR3R24UZHYHJ2ZBSERDQ5NEDTANCNFSM4KEIFZ6A>
.
|
Released v3.15.0 with the zooming enabled on category x-axis. Doc: https://apexcharts.com/docs/zooming-in-category-x-axis/ |
Hi @junedchhipa |
@Eskimo111 Columns resize when x-axis is "timeline" instead of "category". |
Is your feature request related to a problem? Please describe.
It has been clear that one of the biggest problems of apexcharts is that 'category' type charts are not zoomable. - and I know of more than 10 users that dropped it for that reason and we are on the verge of dropping it completely and never look back.
We need all the critical features that come with 'category' type charts:
Describe the solution you'd like
Enable zooming for xaxis.type='category' charts.
Additional context
Our current solution is a 'datetime' with hundreds of hacks, and it still looks buggy. We will definitely drop apexcharts in the next weeks if we can't solve this, which makes us really sad.
I'm attaching two screenshots that illustrate problems with 'datetime'.
We have a financial charts and want to show annual data for each year, e.g. 2018, 2019, 2020
How are your plans/roadmap for resolving this major issue?
The text was updated successfully, but these errors were encountered: