ad-dagostini
Posts: 2
Joined: Tue Dec 07, 2021 12:28 pm

Wind-barb direction

Hello,

I'm trying to plot sea surface current directions with highcharts wind-barbs. It works perfectly, except for the directions when the sea current speeds below 0.2m/s.

In the wind-barbs function, when the wind speed is below 0.2m/s by default it considers the direction "null" and plot the direction as "O". However sea surface currents presents much lower intensities than wind speed (e.g. https://www.highcharts.com/docs/chart-a ... er-options)

I would like to change this "0.2m/s" default value to "0m/s" to be able to plot the sea current direction properly.

I don't found a way to change this default value in the documentation.
Anyone could help me?

Thanks,

Andressa
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Wind-barb direction

Hello ad-dagostini,

Welcome to our forum and thanks for contacting us with your question!

You can assign a new array to `Highcharts.seriesTypes.windbarb.beaufortFloor` with your own values.

Demo:
https://jsfiddle.net/BlackLabel/4c8rfh0t/

Feel free to ask any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
ad-dagostini
Posts: 2
Joined: Tue Dec 07, 2021 12:28 pm

Re: Wind-barb direction

Hello magdalena,

Thank you very much for your reply.
The change in the `Highcharts.seriesTypes.windbarb.beaufortFloor` array worked.

Best regards!
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Wind-barb direction

You're welcome! In case of any further questions, feel free to contact us again.
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Usage”