Draw simple graph

Hi,

I want to draw a simple graph:
f(day)= 80 * day

f(0) = 0
f(1) = 80
f(2) = 160
f(3) = …

Is it possible?

Thanks!

Do you have a datasource created and working? If not, I would suggest Google Sheets where you can write your formulas and display them in Grafana.

using apache echarts

const seed = 80
let date = [];
let voltages = []
const weekday = [1, 2, 3, 4, 5, 6, 7]
d = new Date();
var dd
let dates = weekday.map((v, i, o) => {
  d.setDate(d.getDate() + i)
  dd = (d.getMonth() + 1) + '-' + d.getDate() + '-' + d.getFullYear();
  voltages.push(i * seed)
  return voltages
});

return {
  tooltip: {
    trigger: 'axis',
  },
  xAxis: {
    type: 'category',
    data: date
  },
  yAxis: {
    type: 'value',
  },
  series: [
    {
      name: 'tension',
      type: 'line',
      data: voltages
    }
  ]
};