Giraffe: Line + Single stat HOWTO?

Hi,

I would like to add a line with a single stat with giraffe like in the example: Storybook

But I don’t know how to do it.
Do I have to use a “line” type with some parameters from “single stat” ?
Is it a “custom” type ?
Is it another type name ?

Thank you for your help
Jeleb

Hi,

More generally, where can we find the configurations used for the Storybook ?

Hi,

I tried a lot of things to have line graph and single stat on the same graph but nothing’s working properly.
I think it’s not difficult to do this, but I have no idea anymore
Any help is welcome

Thank you
Jeleb

Ok, I find a solution
To have two data types on the same graph, you have to define two layers of two different type

var layerLine = {
  "type": "line",
  ...
}
var layerSingleStat = {
  "type": "single stat",
  ...
}

var config = {
  "layers": [layerLine, layerSingleStat]
  ...
}

:sunglasses: :+1:
Jeleb