Custom html block

trying to test a custom google chart gauges, but I’m not getting any output.
Any working dashboard I can see the code for?

Hi @Lars_Andersson,

There are a few working examples in the Custom HTML Block documentation.

Thanks!
Julia

Those are the ones I’ve tried copying in, but I’m not having any luck.

See the last block in 5d1c077434fdb20009a83ed1

Hi @Lars_Andersson,

I took a look at your block and it looks as though you did not remove the pre-filled configuration for this block, which is causing some problems as it is not included in the body. To remedy this to display correctly, you will either need to remove or include the prefilled configuration, or, at the minimum, remove this line from your code:

  function renderBlock(input) {
    document.getElementById('blockInput').innerHTML =
      JSON.stringify(input, undefined, 2);
  }

If you choose to include the blockInput in your HTML block, you would only need to add it to the body (I used <div id="blockInput"></div> and both are displayed):

Thanks!
Julia

Got it ! Thanks for a quick response