var {{variableName}} = { x: {{x | raw}}, {% if y is not null %} y: {{y | raw}}, {% endif %} {% if z is not null %} z: {{z | raw}}, {% endif %} showlegend: {{showLegend}}, {% if hoverlabel is not null %} hoverlabel: {{hoverlabel | raw }}, {% endif %} {% if marker is not null %} marker: {{marker | raw }}, {% endif %} {% if text is not null %} text: {{text | raw }}, {% endif %} {% if mode is not null %} mode: '{{mode}}', {% endif %} {% if line is not null %} line: {{line | raw }}, {% endif %} {% if orientation is not null %} orientation: '{{orientation}}', {% endif %} {% if opacity is not null %} opacity: '{{opacity}}', {% endif %} {% if nBinsX is not null %} nbinsx: {{nBinsX}}, {% endif %} {% if autoBinX is not null %} autobinx: {{autoBinX}}, {% endif %} {% if nBinsY is not null %} nbinsy: {{nBinsY}}, {% endif %} {% if autoBinY is not null %} autobiny: {{autoBinY}}, {% endif %} type: '{{type}}', name: '{{name}}', };