Ali Salehi
Ali Salehi

Reputation: 6999

Create a step chart in Flot using one data point

How can I create a time-series flot step chart using one value with start-time and end-time. It should plot a straight line starting from start-time until end-time with the value of V.

Upvotes: 0

Views: 364

Answers (1)

Raidri
Raidri

Reputation: 17550

You mean something like in this fiddle?

For that you need to create a dataseries with two datapoints like this:

var data = [
    [startTime, value],
    [endTime, value]
];

Upvotes: 1

Related Questions