Time-based
This is the official documentation of the agent_ruby
Ruby agent.

Time-based charts are very similar to distribution charts, the only differences being that:
An additional parameter tells the frontend if the dates should be displayed by
Day
,Week
,Month
, orYear
,
@create_agent.add_chart('transactionVolume') do |_context, result_builder|
result_builder.time_based(
'Month',
[
{ date: '2017-02-01', value: 636 },
{ date: '2017-03-01', value: 740 },
{ date: '2017-04-01', value: 648 },
{ date: '2017-05-01', value: 726 }
]
)
end
Last updated
Was this helpful?