Skip to content
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

Floating bar chart and support on time scale? #7356

Closed
stockiNail opened this issue May 14, 2020 · 15 comments
Closed

Floating bar chart and support on time scale? #7356

stockiNail opened this issue May 14, 2020 · 15 comments

Comments

@stockiNail
Copy link
Contributor

I'm doing some tests on floating bar charts and I have got some problems to use floating bar and time scale.

I prepared my dataset with the datapoints (see below) but the chart doesn't show the dataset.

datasets: [{
	backgroundColor: "red",
	borderColor: "red",
	data: [{
		x: "2020-05-01",
		y: [50, 100]
	}, {
		x: "2020-05-02",
		y: [50, 100]
	}, {
		x: "2020-05-03",
		y: [50, 100]
	}, {
		x: "2020-05-04",
		y: [50, 100]
	}]
}]

I have tried to use also t property with UTC with the same result.

I haven't raised a bug because I have the feeling the floating bar charts don't support time scale (and time series).

@benmccann
Copy link
Contributor

I would expect it to be supported on the time scale. I don't have any ideas off the top of my head

What version are you using?

@stockiNail
Copy link
Contributor Author

@benmccann I forgot... 2.9.3 Do you need a codepen example?

@stockiNail
Copy link
Contributor Author

stockiNail commented May 14, 2020

I have found same issue #6499 and seems still pending. Maybe I'm wrong

@stockiNail
Copy link
Contributor Author

CodePen example is here https://codepen.io/stockinail/pen/oNjPYNo

@benmccann
Copy link
Contributor

#6499 seems unrelated. The issue in that one was that the feature hadn't been released yet :-)

@benmccann benmccann added this to the Version 3.0 milestone May 14, 2020
@stockiNail
Copy link
Contributor Author

@benmccann that sounded really close to mine, sorry. Thanks a lot!

@kurkle
Copy link
Member

kurkle commented May 15, 2020

Another thing fixed in v3.
https://codepen.io/kurkle/pen/gOadBzy

The change is here: #6739

@stockiNail
Copy link
Contributor Author

@kurkle Thank you very much. I'm gonna wait for v3 to implement this capability on time series.

@kurkle
Copy link
Member

kurkle commented May 15, 2020

For 2.9.3, you can use separate labels, to make it work: https://codepen.io/kurkle/pen/rNOZqRG

@stockiNail
Copy link
Contributor Author

Very good! Thank you very much! This is a good workaround. I will use it!

@stockiNail
Copy link
Contributor Author

@kurkle if I may, in V3 will it work with UTC value into t property of a data point as well?

@stockiNail
Copy link
Contributor Author

@kurkle if I may, in V3 will it work with UTC value into t property of a data point as well?

Ignore it. I have tested and it works!! thanks again

@kurkle
Copy link
Member

kurkle commented May 15, 2020

@kurkle if I may, in V3 will it work with UTC value into t property of a data point as well?

I'd use x or y instead of t though. All of those work, if the scale is time scale.

@stockiNail
Copy link
Contributor Author

I'd use x or y instead of t though. All of those work, if the scale is time scale.

Another new thing that I learned! Thank you. Does it work like that on 2.9.3? If yes, we can say that t property is obsolete and useless and then I can use always x.

@kurkle
Copy link
Member

kurkle commented May 15, 2020

Should work the same in 2.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants