AAChartKit-Swift icon indicating copy to clipboard operation
AAChartKit-Swift copied to clipboard

Labels numberOfLines

Open akkayanill opened this issue 5 years ago β€’ 2 comments

This is what i want. Screen Shot 2020-11-02 at 17 50 21

This is what i have Simulator Screen Shot - iPhone SE - 2020-11-02 at 23 59 24

1- How can i have labels with 2 lines? Like "Fr\n11.09"

2- How can i hide horizontal indicator? (covered it with RED color)

3- How can i set vertical alignment between yAxis Labels and it's gridLines? (covered it with GREEN color)

akkayanill avatar Nov 02 '20 14:11 akkayanill

Can you post your console log of AAOptions ?

AAChartModel avatar Nov 03 '20 02:11 AAChartModel

Can you post your console log of AAOptions ?

-----------πŸ–¨πŸ–¨πŸ–¨ console log AAOptions JSON information of AAChartView πŸ–¨πŸ–¨πŸ–¨-----------:
{
  "colors" : [
    "#199CFF"
  ],
  "credits" : {
    "enabled" : false
  },
  "plotOptions" : {
    "series" : {
      "marker" : {
        "radius" : 5,
        "symbol" : "circle"
      },
      "stacking" : "",
      "animation" : {
        "easing" : 1,
        "duration" : 800
      },
      "dataLabels" : {
        "enabled" : false
      }
    }
  },
  "touchEventEnabled" : true,
  "tooltip" : {
    "shared" : true,
    "crosshairs" : true,
    "enabled" : false,
    "valueSuffix" : " "
  },
  "title" : {
    "text" : ""
  },
  "chart" : {
    "margin" : [
      0,
      0,
      20,
      40
    ],
    "scrollablePlotArea" : {
      "minWidth" : 720,
      "scrollPositionX" : 1
    },
    "pinchType" : "none",
    "type" : "line",
    "backgroundColor" : "rgba(0,0,0,0)",
    "panning" : true
  },
  "series" : [
    {
      "data" : [
        1,
        2,
        4,
        4,
        1,
        2.3999999999999999,
        0,
        0,
        0
      ],
      "color" : "#199CFF"
    }
  ],
  "legend" : {
    "enabled" : false,
    "itemStyle" : {

    }
  },
  "xAxis" : {
    "categories" : [
      "Fr",
      "Sa",
      "Su",
      "Mo"
    ]
  },
  "yAxis" : {
    "min" : 0,
    "gridLineDashStyle" : "dot",
    "gridLineColor" : "#8F98C1",
    "categories" : [
      "%0",
      "%25",
      "%50",
      "%75",
      "%90"
    ]
  }
}

akkayanill avatar Nov 03 '20 10:11 akkayanill