<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dashboards dual axis in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/dashboards-dual-axis/m-p/176255#M2270</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/270858"&gt;@hhaaland&lt;/a&gt;,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Current documentation on the&amp;nbsp;AI/BI dashboards with dual y-axis states that axis range has three options:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Default &lt;/STRONG&gt;("Use an automatic range")&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Per facet,&lt;/STRONG&gt; which only applies to faceted charts&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Custom&lt;/STRONG&gt; ("Set fixed Minimum and Maximum values")&lt;/LI&gt;
&lt;/OL&gt;
&lt;UL&gt;
&lt;LI&gt;There's no "include zero" toggle, and the docs don't say whether you can fill in only Minimum and leave Maximum blank.
&lt;UL&gt;
&lt;LI&gt;Log (Symmetric) doesn't help, and internally there's a known report of log axes still starting at&amp;nbsp;0.&lt;/LI&gt;
&lt;LI&gt;Custom Viz uses Vega-Lite, and the docs' own example uses "scale": {"zero": false}.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So, I don't think Default can do better on its own. The automatic range starts at zero, and the only other options are Per facet (for faceted charts) and Custom, which fixes both ends. A few ways around it:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Custom Viz (currently in Public Preview).&lt;/STRONG&gt; Under Advanced visualisation, pick Custom Viz, add your date and two measures in Fields, and paste a Vega-Lite spec. "zero": false lets each axis fit its own data, and "resolve" keeps the two axes independent, so it still rescales when the data changes:
&lt;OL&gt;
&lt;LI&gt;&lt;LI-CODE lang="javascript"&gt;{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {"name": "databricks_query"},
  "width": "container",
  "height": "container",
  "config": {"autosize": {"type": "fit", "contains": "padding"}},
  "layer": [
    {
      "mark": {"type": "line", "color": "#00A972"},
      "encoding": {
        "x": {"field": "date", "type": "temporal"},
        "y": {"field": "series_a", "type": "quantitative",
              "scale": {"zero": false}, "axis": {"title": "Series A"}}
      }
    },
    {
      "mark": {"type": "line", "color": "#FF3621"},
      "encoding": {
        "x": {"field": "date", "type": "temporal"},
        "y": {"field": "series_b", "type": "quantitative",
              "scale": {"zero": false}, "axis": {"title": "Series B", "orient": "right"}}
      }
    }
  ],
  "resolve": {"scale": {"y": "independent"}}
}
&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Replace date, series_a and series_b with the Name of each field in the Fields section. Keep "data": {"name": "databricks_query"} as it is: that's how the chart picks up your dataset. More examples are in the docs: &lt;A href="https://docs.databricks.com/aws/en/dashboards/manage/visualizations/custom-visualizations" target="_blank"&gt;Custom visualizations&lt;/A&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;If you stay with the built-in chart,&lt;/STRONG&gt; set a Custom range on each axis separately (kebab menu next to &lt;STRONG&gt;Left Y axis&lt;/STRONG&gt; / &lt;STRONG&gt;Right Y axis&lt;/STRONG&gt;). Leave a margin above and below your usual values so new data doesn't fall outside the range.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Check whether you need two axes.&lt;/STRONG&gt; In your screenshot both lines sit around 0.45. If they're the same unit, one axis makes the gap between them easier to read.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;A native "don't start at zero" option would be the cleaner fix, so it's worth raising as an idea&amp;nbsp;&lt;/SPAN&gt;through the&lt;A href="https://www.databricks.com/feedback" target="_self"&gt; Ideas Portal&lt;/A&gt; too.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2026 13:36:53 GMT</pubDate>
    <dc:creator>Valeria_Koz_DBX</dc:creator>
    <dc:date>2026-11-12T13:36:53Z</dc:date>
    <item>
      <title>Dashboards dual axis</title>
      <link>https://community.databricks.com/t5/generative-ai/dashboards-dual-axis/m-p/176167#M2265</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;I am using AI/BI dashboards with dual y-axis. If I have Axis Range set to Default, it is not very good at auto-scaling.&amp;nbsp; See attached example - notice the huge amount of dead space&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hhaaland_0-1794391222974.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33248iA21E897916019946/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hhaaland_0-1794391222974.png" alt="hhaaland_0-1794391222974.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I could of course chose custom range to get better result, but then if the data changes, then all or parts of the curves disappear since the range would be fixed.&lt;BR /&gt;&lt;BR /&gt;Do you know how to achieve better auto-scaling with dual-axis?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2026 10:01:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/dashboards-dual-axis/m-p/176167#M2265</guid>
      <dc:creator>hhaaland</dc:creator>
      <dc:date>2026-11-11T10:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboards dual axis</title>
      <link>https://community.databricks.com/t5/generative-ai/dashboards-dual-axis/m-p/176255#M2270</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/270858"&gt;@hhaaland&lt;/a&gt;,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Current documentation on the&amp;nbsp;AI/BI dashboards with dual y-axis states that axis range has three options:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Default &lt;/STRONG&gt;("Use an automatic range")&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Per facet,&lt;/STRONG&gt; which only applies to faceted charts&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Custom&lt;/STRONG&gt; ("Set fixed Minimum and Maximum values")&lt;/LI&gt;
&lt;/OL&gt;
&lt;UL&gt;
&lt;LI&gt;There's no "include zero" toggle, and the docs don't say whether you can fill in only Minimum and leave Maximum blank.
&lt;UL&gt;
&lt;LI&gt;Log (Symmetric) doesn't help, and internally there's a known report of log axes still starting at&amp;nbsp;0.&lt;/LI&gt;
&lt;LI&gt;Custom Viz uses Vega-Lite, and the docs' own example uses "scale": {"zero": false}.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So, I don't think Default can do better on its own. The automatic range starts at zero, and the only other options are Per facet (for faceted charts) and Custom, which fixes both ends. A few ways around it:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Custom Viz (currently in Public Preview).&lt;/STRONG&gt; Under Advanced visualisation, pick Custom Viz, add your date and two measures in Fields, and paste a Vega-Lite spec. "zero": false lets each axis fit its own data, and "resolve" keeps the two axes independent, so it still rescales when the data changes:
&lt;OL&gt;
&lt;LI&gt;&lt;LI-CODE lang="javascript"&gt;{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {"name": "databricks_query"},
  "width": "container",
  "height": "container",
  "config": {"autosize": {"type": "fit", "contains": "padding"}},
  "layer": [
    {
      "mark": {"type": "line", "color": "#00A972"},
      "encoding": {
        "x": {"field": "date", "type": "temporal"},
        "y": {"field": "series_a", "type": "quantitative",
              "scale": {"zero": false}, "axis": {"title": "Series A"}}
      }
    },
    {
      "mark": {"type": "line", "color": "#FF3621"},
      "encoding": {
        "x": {"field": "date", "type": "temporal"},
        "y": {"field": "series_b", "type": "quantitative",
              "scale": {"zero": false}, "axis": {"title": "Series B", "orient": "right"}}
      }
    }
  ],
  "resolve": {"scale": {"y": "independent"}}
}
&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Replace date, series_a and series_b with the Name of each field in the Fields section. Keep "data": {"name": "databricks_query"} as it is: that's how the chart picks up your dataset. More examples are in the docs: &lt;A href="https://docs.databricks.com/aws/en/dashboards/manage/visualizations/custom-visualizations" target="_blank"&gt;Custom visualizations&lt;/A&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;If you stay with the built-in chart,&lt;/STRONG&gt; set a Custom range on each axis separately (kebab menu next to &lt;STRONG&gt;Left Y axis&lt;/STRONG&gt; / &lt;STRONG&gt;Right Y axis&lt;/STRONG&gt;). Leave a margin above and below your usual values so new data doesn't fall outside the range.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Check whether you need two axes.&lt;/STRONG&gt; In your screenshot both lines sit around 0.45. If they're the same unit, one axis makes the gap between them easier to read.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;A native "don't start at zero" option would be the cleaner fix, so it's worth raising as an idea&amp;nbsp;&lt;/SPAN&gt;through the&lt;A href="https://www.databricks.com/feedback" target="_self"&gt; Ideas Portal&lt;/A&gt; too.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2026 13:36:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/dashboards-dual-axis/m-p/176255#M2270</guid>
      <dc:creator>Valeria_Koz_DBX</dc:creator>
      <dc:date>2026-11-12T13:36:53Z</dc:date>
    </item>
  </channel>
</rss>

