jquery Flot Chart - How to hide weekend datetimes - for Forex charts

0 votes

How can I hide the Weekend times on X-axis? This timeline should skip the time between the Friday 23:59 and Monday 00:00 - i.e. all the Weekend.

I already skipped all timestamps between Friday evening and Monday morning, but it still shows the data like it there is some activity during a Weekend.

enter image description here

var data = [
			{ data: EUR, label: "EUR" },
			{ data: USD, label: "USD" },
			{ data: CAD, label: "CAD" },
			{ data: GBP, label: "GBP" },
			{ data: CHF, label: "CHF" },
			{ data: AUD, label: "AUD" },
			{ data: NZD, label: "NZD" },
			{ data: JPY, label: "JPY" }
		];

		$.plot("#chart", data, {
			series: {
				lines:  { show: true },
				points: { show: true }
			},
			xaxis: {
                                mode:       "time",
                                timeformat: "%d/%m %H"
                        },
			yaxis: {
				ticks:       10,
				min:        -45,
				max:         45,
				tickDecimals: 1
			},
                        grid: { 
                               clickable: 1,
                               hoverable: 1,
                               backgroundColor: { colors: [ "#fff", "#eee" ] },
                               borderWidth: {
                                              top:    1,
                                              right:  1,
                                              bottom: 2,
                                              left:   2
                               }
			}
	});

 

Aug 19, 2022 in Web Development by gaurav
• 23,260 points
638 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Web Development

0 votes
1 answer

How to hide a div with jQuery?

We hide the divs by adding a CSS ...READ MORE

answered Jun 27, 2022 in Web Development by rajatha
• 7,680 points
422 views
0 votes
0 answers

how to get values of columns for a selected row through jQuery

here i am trying to fetch values ...READ MORE

Jul 1, 2022 in Web Development by gaurav
• 23,260 points
5,428 views
0 votes
0 answers

How to load jQuery Migrate for jQuery via RequireJS?

Can I load jQuery migrate via RequireJS? ...READ MORE

Aug 11, 2022 in Web Development by gaurav
• 23,260 points
493 views
0 votes
1 answer

How do you use jQuery to hide an element?

The .hide() method in jQuery animates the ...READ MORE

answered Nov 13 in Web Development by kavya
26 views
0 votes
0 answers

How to start Airbnb Clone for Movies and Events Booking Website?

Instant #Online Movies and Events Ticket Booking ...READ MORE

Feb 17, 2020 in Web Development by Bessie
• 160 points

reshown Feb 18, 2020 by Gitika 853 views
0 votes
1 answer

How to set up authentication for reactjs and django ?

Hello  yahya , Using both, you can secure ...READ MORE

answered Jun 2, 2020 in Web Development by Niroj
• 82,840 points
1,830 views
0 votes
1 answer

How interactive graphs are generated in Tableau?

Lot of back end code is shared ...READ MORE

answered Apr 14, 2018 in Tableau by xyz
• 1,560 points
813 views
0 votes
1 answer

How to use jquery with asp.net ajax?

If you weren't aware, Microsoft is planning ...READ MORE

answered Oct 15, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
745 views
0 votes
1 answer

Is 'sparkline' a method?

I suggest you to check 2 things That jquery.sparkline.js is actually ...READ MORE

answered Nov 9, 2018 in Apache Spark by Frankie
• 9,830 points
1,269 views
0 votes
1 answer

What is jQuery?

Hey, jQuery is a fast and concise JavaScript ...READ MORE

answered Feb 14, 2020 in JQuery by kartik
• 37,520 points
1,314 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP