cawkie
Posts: 12
Joined: Wed Jun 27, 2018 10:27 am

Disabling currentDateIndicator on export

Trying to create a gantt chart with the currentDateIndicator showing on the screen but not on export.

Created a fiddle based on your demo.

https://jsfiddle.net/cawkie/uktxhpfm/5/

:?
cawkie
Posts: 12
Joined: Wed Jun 27, 2018 10:27 am

Re: Disabling currentDateIndicator on export

Also tried setting color= white, width=0, label='' etc. but all seem to be ignored.

Or maybe I've got them in the wrong place...
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Disabling currentDateIndicator on export

Hi,

We appreciate you reaching out to us.

All you need to do is wrap xAxis in arrays, then when you exporting, the current data indicator will not be visible.

Code: Select all

      xAxis: [{
        currentDateIndicator: false,
      }],

Live demo:
https://jsfiddle.net/BlackLabel/zyc7sxtq/

API References:
https://api.highcharts.com/gantt/xAxis

Let me know if that was what you were looking for.
Best regards.
Sebastian Hajdus
Highcharts Developer
cawkie
Posts: 12
Joined: Wed Jun 27, 2018 10:27 am

Re: Disabling currentDateIndicator on export

That's working now :D

I was confused by the main xAxis definition for the displayed chart NOT being an array :roll:

Thanks for your help
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Disabling currentDateIndicator on export

We're glad to hear that!

In case of any further questions feel free to reach us anytime.
Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Gantt”