Skip to content
David Baetge edited this page Feb 26, 2023 · 9 revisions

Adding a combined custom chart manually to a template.

First, add the configuration to skin.conf, under the combined_observations key:

[[[combined_observations]]]
    [[[[my_custom_chart]]]]
        label = "My custom Chart"
        curve="natural"
        [[[[[obs]]]]]
            [[[[[[rain]]]]]]
                observation = "rain"
            [[[[[[outTemp]]]]]]
                observation = "outTemp"

Then, add this to the template where you want the chart to be rendered.

<div class="bx--row">
    #set global $comb_obs = "my_custom_chart"
    #set global $combined_diagram = $DisplayOptions.get("diagrams", {}).get("combined_observations", {}).get('my_custom_chart', {})
    #set global $diagram_index = 9999
    #include "includes/combined-diagram-tile.inc"
 </div>
Clone this wiki locally