I am trying to build two line graphs on the same ZingChart graph and struggling to figure out in which format I should transfer the data.
Basically, I have an array of label / integer pairs for today's and weekly data at one-hour intervals, for example:
today = [[timestamp1, 1], [timestamp2, 4], ......, [timestamp18, 7]] <- Assuming now itβs 6 pm, so there is no data for the rest of the day
week_ago = [[timestamp1, 4], [timestamp2, 7], ......, [timestamp23, 1]] <- full data for 24 hours
Series x should show hours from 00:00 to 23:00, and series y should show integers. In addition, at every point in the graph, I would like a tooltip to show the date and integer value.
It sounds very simple and probably just because I'm completely new to ZingChart, I can't figure it out.
Thank you so much
date graph charts plot zingchart
djkprojects
source share