B4J Question Clear Bar chart

Discussion in 'B4J Questions' started by micro, May 14, 2015.

  1. micro

    micro Well-Known Member Licensed User

    Hi
    How I can remove all the bars draw on the chartbar?
    Thanks
     
  2. micro

    micro Well-Known Member Licensed User

    Hi Erel
    I'm using your module charts.bas but i can not remove the bars
    thet before i have displayed, i clear all drastically with RemoveAllNodes.
    Another questions:
    I attached a picture where the name on the x axis is truncated, I can not increase the space.
    how can I do?
    Thanks for your patience
     

    Attached Files:

  3. Erel

    Erel Administrator Staff Member Licensed User

    The x axis titles are drawn in line #157: Canvas.DrawTextRotated(p.x, x, GI.originY + 12dip, fx.DefaultFont(12), G.AxisColor, "RIGHT", -45)

    You can modify it to increase the size.

    You cannot remove the bars without redrawing the graph. When you call Charts.DrawBarsChart it firsts clears the whole canvas.
     
  4. micro

    micro Well-Known Member Licensed User

    Thanks Erel for your suggestion
    but I would like more space for more characters without changing the font size.
    It's possible?
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Yes. But you will first need to understand how the grid is drawn. You can then make the grid a bit smaller and have more space for the titles.
     
  6. micro

    micro Well-Known Member Licensed User

    With the same dimension as in charts.bas (after I program the size of the bars and the axis scale).
    Thanks
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice