-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Managing xAxis and yAxis options #9
Comments
Hi this is not a problem with the directive. It is how you have defined the xAxis: |
I found something curious in the directive's beahave. I was aiming to "dinamically" set visible/invisible the "navigator" section with dinamyc data too. // Because the bussines logic, this was the first "problem" The way I defined the xAxys it's correct, but... The creation of the navigator was wrong, What I did? After the creation of the chart, I "injecteted" the navigator object with its attributes, And that was it! ( I just modified a little bit your directive to get this working as a I needed ) Thank you for your time and your great base-code! :D |
Glad you find it useful. I have seen some problems with the navigator also. I think there may be a bug in highcharts when updating a series with the navigator enabled. If you could make a jsfiddle or submit a pull request to show any of your changes that would be great. Also it would be good if you could try the same thing with updates I released today - I think it might be bit more robust now. Thanks for the feedback. |
At the moment of take care of the options "xAxis" and "yAxis" generates an infinite loop, this is the "breaking code":
$scope.chart = {
options: {
chart: {
type : 'area',
width: 970,
height: 230,
marginLeft: 50,
marginTop: 50
},
navigator: {
enabled: true,
series:{
data: [[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8]]
}
},
//From here
xAxis: {
categories: [],
type: 'datetime',
ordinal : false,
minRange : 60 * 60 * 1000, // one min
},
yAxis: {
title: { text: '' },
labels: {
align: 'left',
x: -15,
y: 0
},
}
//To here
},
series: [{
data: [[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8]]
}],
title: {
text: "Title"
}
}
The text was updated successfully, but these errors were encountered: