HighCharts SetExtremes不起作用

时间:2018-03-12 15:02:41

标签: ios highcharts

这是我在Objective C中的示例代码.setExtremes没有设置我们传入的最小值/最大值。感谢任何帮助!

HIEvents *events = [[HIEvents alloc] init];

NSString *jScript =[NSString stringWithFormat:@"function () { this.chart.xAxis[0].setExtremes(%@,%@);}",min,max];

events.load = [[HIFunction alloc] initWithFunction:jScript];
chart.events = events;

1 个答案:

答案 0 :(得分:-1)

能够解决这个问题:

cimport my_error_helper

class MyError(RuntimeError):
    "Base class for errors raised from my C++."
    pass

cdef int raise_my_py_error() except *:
    msg = my_error_helper.get_my_py_error_message().decode('utf-8')
    raise MyError(msg)