just show every hour as time tick in chart.js - chart.js

i have the following plot from chart.js:
But right now I cannot find anything how to just show the full hour and going in 1h steps: So what I want is just a simple time axis scale with labels at 0,1,2,3,4,5,... so that multiple data points could are bewteen two time ticks like the data at 3:26, 3:58 and 3:12 are just 3 points between 3 and 4.
Thank you very much!

Related

Cloudwatch dashboard: widgets with independent time ranges?

I would like each widget in my Dashboard to have its own time range
I can't find a way to do this, and I would find it mind boggling if it's not possible.
I would like my Dashboard to contain the following stacked areas widgets:
RequestCount from the past hour with 30 seconds periods (i.e. 120 plot points)
RequestCount from the past day with 1 hour periods (i.e. 24 plot points)
RequestCount from the past week with 6 hour periods (i.e. 28 plot points)
However, I can't seem to enforce each widget's time range (only their periods), and the Dashboard's time range overrides everything, regardless of what I had previously set in each widget.
Is there a way for each widget to maintain its original time range?

Scatter chart Play Axis is limited to 10 elements

In a Power Bi report I'm using a Scatter Chart (bubble) with a Play Axis (months).
But this one is limited to 10 elements (I tried years, days, weeks... always 10). Also it's not a size problem, I already tried to put it on maximum size.
And I would like to have 12 elements (all months). How can I fix that?
[https://i.stack.imgur.com/QkW7f.png]
Thanks a lot
The scatter chart does not limit the play axis to 10 items, the value for those remaining items are null/blank due to which the play axis does not show those values. Please find below the screenshot. So please check the data for those missing categories.
Thanks.

reverse axis direction for google motion chart

I am creating a gvisMotionChart that displays data from the past 5 years. I would like the initial state to be the most recent date (ex. 2012) and for the chart to move "backwards" in time. I know how to set the initial state to the latest date, but that doesn't reverse the time scale at all it just starts the chart at the end of the timeline.
basically, I am looking for a function for the gvisMotionChart that does the same thing as the "hAxis.direction" function for the google Scatter Chart.
Does anyone know how to accomplish this?
Thanks!!

Google Chart Date X-Axis not proportionate to length of time

I have a simple chart plotting data over time. The data points are taken at random time intervals, and I would like the chart X axis (time) to actually reflect the interval between these dates. Currently the x axis always uses the same spacing between two dates, regardless of the span of time covering the delta.
Thanks!
https://developers.google.com/chart/interactive/docs/gallery/annotatedtimeline
should do what you want. It has support for graphing using dates.

ColdFusion Chart x-axis label limits

I'm using cfchart tag to draw my line chart in ColdFusion.
My x-axis range is from 1 to 24 and it is fix number of labels for all my charts.
But in my chart, I may have values for first 10 (or any fix number from 1 to 24) points. I mean, my query row count will be 10.
So query with 24 points will show full graph ad query with 10 points will show x-axis values from 0 to 10. But I want to scale the chart for 24 points regardless of query count.
cfchart has an option called scaleFrom and scaleTo to fix the y-axis series, Is there any option for x-axis series?
Following is a chart and it should scale it for 24 points on x-axis (lines from the 10th point will not be there).
<cfchart format="jpg"
xaxistitle=""
yaxistitle="" chartwidth="600" chartheight="120">
<cfchartseries type="line" paintstyle="shade"
query="qChart1" markerstyle="circle"
itemcolumn="CHARTLABEL"
valuecolumn="INTCHART1" />
</cfchart>
I think you are looking for
xAxistype="Scale" scaleMin="1" scaleMax="24"
xaxistype normally defaults to "category" which I believe is simply the query in order, but by setting to "scale" (must be all numeric values) you can alter this.
If you are wanting more custom formatting for charts fire up webcharts.bat in the charting folder of CF and fill your boots.
Saul's answer is more elegant than mine, but I'll still share.
I had the same problem with showing monthly activity for the last year. Sites that had only been active briefly, or who had no traffic/growth/whatever I was tracking didn't display correctly.
Instead of using a cfchartseries displaying a query, I looped over the time to be displayed, used a query of queries to extract the data for that month, and then added a data point for that month.
A bit brute force, but it worked.