Hybrid View

    Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    99
    Vote Rating
    0
    LEWJO10@ca.com is on a distinguished road

      0  

    Default (Beta 1) Scatter Chart Triangle Shape is Not Equilateral

    (Beta 1) Scatter Chart Triangle Shape is Not Equilateral


    Brendan,

    The triangle returned from Primitives.triangle(0, 0, 10) that can be used as a ScatterSeries marker is a right angle triangle, which (in my opinion) looks odd (see attached). I think that it would be more appropriate in this context to return an equilateral triangle or at least an isosceles triangle.

    If you agree, then please fix.

    Thanks,
    John Lewis
    Attached Images

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    Thanks again John. This will be fixed in the next release. In the meantime this method should get you what you want:
    Code:
    public static PathSprite triangle(double cx, double cy, double radius) {    
        PathSprite triangle = new PathSprite();
        radius *= 1.75;
        triangle.addCommand(new MoveTo(cx, cy));
        triangle.addCommand(new MoveTo(0, -radius * 0.58, true));
        triangle.addCommand(new LineTo(radius * 0.5, radius * 0.87, true));
        triangle.addCommand(new LineTo(-radius, 0, true));
        triangle.addCommand(new ClosePath());
        return triangle;
      }

Thread Participants: 1