Ticket T1279121
Visible to All Users

Bar Chart Min-Max

created 2 days ago

Hello,
I am using the RangeBar series in a DevExtreme Chart, and I am trying to set a custom VisualRange for the value axis. However, the chart always adjusts the range based on the first and last data points in the dataSource, instead of using the values I set for VisualRange.
Here is what I have tried:

  • Setting valueAxis.visualRange explicitly to my desired range.
  • Using chartRef.instance.option('valueAxis.visualRange', { startValue, endValue }).
  • Calling chartRef.instance.render() after setting the VisualRange.

Despite these attempts, the chart still displays the range based on the data, rather than my specified VisualRange values.
Is this the expected behavior? If not, how can I ensure that the chart respects the manually set VisualRange on the value axis?
Thank you for your support.

Comments (1)
Diana (DevExpress Support) 2 days ago

    Hello,

    Thank you for the screenshot.

    I set the valueAxis|visualRange option to [0, 100] to test the following demo: RangeBar. As far as I can see, it works correctly. Please modify this example or share a sample project where this issue occurs. This way, we will be in a better position to assist you.

    Regards,
    Diana

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.