[CLOSED] Set minimum bar width in Cartesian Chart

  1. #1

    [CLOSED] Set minimum bar width in Cartesian Chart

    Hello,
    I am trying to use this Dashboard in my project. I want to set a minimum width for the bars in the Cartesian Chart , because if there are a lot of bars they become very small and text is not readable. So I am thinking of using a minimum width and horizontal scroll to be able to render all bars and text properly.
    Thank you
    Last edited by fabricio.murta; Apr 04, 2017 at 5:35 PM.
  2. #2
    Hello @atroul!

    There's no such feature as minWidth with charts, I'm afraid.

    You'll have to determine the width of the chart according to the amount of records you return, adding some pixels for each additional record the chart gets.

    So you will have to change the layout of the example, probably adding a container/panel to deal with the chart's over width when many records, showing the scrollbar.

    There's not an implicit option in charts to limit the bars width to something and scroll if the amount of data can't be displayed in the chart canvas. It always needs to be drawn completely.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thank you Fabricio,
    you can mark this as closed.

Similar Threads

  1. [CLOSED] RectangleSprite height is cut off in cartesian chart
    By nikolay in forum 4.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 27, 2017, 11:32 AM
  2. [CLOSED] Line chart is Crossing the chart number axis
    By praveencat123 in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 26, 2015, 8:11 AM
  3. [CLOSED] Cartesian Chart Menu Popup on data point
    By Sobhia in forum 3.x Legacy Premium Help
    Replies: 4
    Last Post: May 27, 2015, 1:52 PM
  4. [CLOSED] Cartesian Chart's Highlight
    By RCN in forum 3.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 03, 2015, 10:45 AM
  5. [CLOSED] Change column width of a chart
    By jchau in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 10, 2014, 11:11 AM

Tags for this Thread

Posting Permissions