2013-11-22 1 views

답변

3

ShinobiChart에 축이 여러 개있는 경우 SChartDataSource 프로토콜에서 sChart:xAxisForSeriesAtIndex:sChart:yAxisForSeriesAtIndex:을 사용할 수 있습니다.

예를 들어 y 축 2 개와 2 개의 시리즈가 있고 첫 번째 시리즈를 첫 번째 축과 연관시키고 두 번째 축을 두 번째 시리즈로 만들려면 데이터 소스에 다음 메소드를 구현하십시오.

- (SChartAxis *)sChart:(ShinobiChart *)chart yAxisForSeriesAtIndex:(int)index 
{ 
    return chart.allYAxes[index]; 
} 
+0

감사합니다. 작동합니다. – cbartel

관련 문제