视图不显示 为什么?
你是怎么引入的?Cocoapods还是手动拖到项目里面的?
通过 Cocoapods 引入 的 最新版本
设置 代码:
-
(PYOption *)standardLineOption {
PYOption *option = [[PYOption alloc] init]; option.backgroundColor = [[PYColor alloc] initWithColor:[UIColor grayColor]]; option.calculable = NO;
PYTooltip *tooltip = [[PYTooltip alloc] init]; tooltip.trigger = @"axis"; option.tooltip = tooltip;
PYGrid *grid = [[PYGrid alloc] init]; grid.x = @(40); grid.x2 = @(50); option.grid = grid;
PYLegend *legend = [[PYLegend alloc] init]; legend.data = @[@"收益", @"预计收益"]; option.legend = legend;
PYAxis *xAxis = [[PYAxis alloc] init]; xAxis.type = @"category"; xAxis.boundaryGap = @(NO); xAxis.data = @[@"周一",@"周二",@"周三",@"周四",@"周五",@"周六",@"周日"]; option.xAxis = [@[xAxis] mutableCopy];
PYAxis *yAxis = [[PYAxis alloc] init]; yAxis.type = @"value"; PYAxisLabel *axisLabel = [[PYAxisLabel alloc] init]; axisLabel.formatter = @"{value}"; yAxis.axisLabel = axisLabel; option.yAxis = [@[yAxis] mutableCopy];
PYSeries *series = [[PYSeries alloc] init]; series.name = @"收益"; series.type = @"line"; series.data = @[@(11),@(11),@(15),@(13),@(12),@(13),@(10)]; PYSeries *serie2 = [[PYSeries alloc] init]; serie2.name = @"预计收益"; serie2.type = @"line"; serie2.data = @[@(1),@(202),@(2),@(5),@(3),@(2),@(0)];
option.series = [@[series, serie2] mutableCopy];
return option; }
引用代码:
[self.chartsView setOption:[PYLineOptions standardLineOption]];
[self.chartsView loadEcharts];
通过 xib 创建的 视图
光标在 该视图移动时 会打印出 一堆 小数。
在 2017年5月19日,11:26,Longhua Zhang [email protected] 写道:
你是怎么引入的?Cocoapods还是手动拖到项目里面的?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Pluto-Y/iOS-Echarts/issues/63#issuecomment-302599215, or mute the thread https://github.com/notifications/unsubscribe-auth/ANZiToz62K3qGOQkP1g3igMK3VghnrJ8ks5r7QvdgaJpZM4NgAbX.
我尝试了一下,是可以显示图的,你能确认一下你用的版本号吗?

1.1.7
在 2017年5月19日,14:59,Longhua Zhang [email protected] 写道:
我尝试了一下,是可以显示图的,你能确认一下你用的版本号吗?
https://cloud.githubusercontent.com/assets/10654142/26236585/af192116-3ca3-11e7-8f0a-a8851bd525f7.png — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Pluto-Y/iOS-Echarts/issues/63#issuecomment-302625251, or mute the thread https://github.com/notifications/unsubscribe-auth/ANZiTpq7tiXrEQ0eDIG6C17fVeq6-ag4ks5r7T3RgaJpZM4NgAbX.
可以把您刚才 测试 我代码的 demo 给我发一下么 ? 谢谢
在 2017年5月19日,15:39,LiCheng [email protected] 写道:
1.1.7
在 2017年5月19日,14:59,Longhua Zhang <[email protected] mailto:[email protected]> 写道:
我尝试了一下,是可以显示图的,你能确认一下你用的版本号吗?
https://cloud.githubusercontent.com/assets/10654142/26236585/af192116-3ca3-11e7-8f0a-a8851bd525f7.png — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Pluto-Y/iOS-Echarts/issues/63#issuecomment-302625251, or mute the thread https://github.com/notifications/unsubscribe-auth/ANZiTpq7tiXrEQ0eDIG6C17fVeq6-ag4ks5r7T3RgaJpZM4NgAbX.
您好, 为什么 git 中的版本 已经到了 1.4.4 而 pod 中 最新版本只是1.1.7? 我手动导入的时候 也会报错:
在 2017年5月19日,17:19,LiCheng [email protected] 写道:
可以把您刚才 测试 我代码的 demo 给我发一下么 ? 谢谢
在 2017年5月19日,15:39,LiCheng <[email protected] mailto:[email protected]> 写道:
1.1.7
在 2017年5月19日,14:59,Longhua Zhang <[email protected] mailto:[email protected]> 写道:
我尝试了一下,是可以显示图的,你能确认一下你用的版本号吗?
https://cloud.githubusercontent.com/assets/10654142/26236585/af192116-3ca3-11e7-8f0a-a8851bd525f7.png — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Pluto-Y/iOS-Echarts/issues/63#issuecomment-302625251, or mute the thread https://github.com/notifications/unsubscribe-auth/ANZiTpq7tiXrEQ0eDIG6C17fVeq6-ag4ks5r7T3RgaJpZM4NgAbX.
不好意思,刚看到,你最好执行以下pod update iOS-Echarts, 升级完版本号再试试看
您好, 我更新后版本是 1.1.7 , 目录里面没有 iOS-Echarts.h 头文件 , 引入头文件时 都是需要引入具体的要用到的头文件。方便添加下 QQ 么, 便于沟通,244344094。在 2017年5月20日,11:54,Longhua Zhang [email protected] 写道:不好意思,刚看到,你最好执行以下pod update iOS-Echarts, 升级完版本号再试试看—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/Pluto-Y/iOS-Echarts","title":"Pluto-Y/iOS-Echarts","subtitle":"GitHub repository","main_image_url":"<a href="<a href="https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png" class="">https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png" class=""><a href="https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png" class="">" rel="nofollow" target="_blank" >https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png</a>","avatar_image_url":"<a href="<a href="https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png" class="">https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png" class=""><a href="https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png" class="">" rel="nofollow" target="_blank" >https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png</a>","action":{"name":"Open in GitHub","url":"<a href="<a href="https://github.com/Pluto-Y/iOS-Echarts" class="">https://github.com/Pluto-Y/iOS-Echarts" class=""><a href="https://github.com/Pluto-Y/iOS-Echarts" class="">https://github.com/Pluto-Y/iOS-Echarts"}},"updates":{"snippets":[{"icon":"PERSON","message":"@Pluto-Y in #63: 不好意思,刚看到,你最好执行以下pod update iOS-Echarts, 升级完版本号再试试看"}],"action":{"name":"View Issue","url":"<a href="<a href="https://github.com/Pluto-Y/iOS-Echarts/issues/63#issuecomment-302848633" class="">https://github.com/Pluto-Y/iOS-Echarts/issues/63#issuecomment-302848633" class=""><a href="https://github.com/Pluto-Y/iOS-Echarts/issues/63#issuecomment-302848633" class="">https://github.com/Pluto-Y/iOS-Echarts/issues/63#issuecomment-302848633"}}}