Skip to content
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

Closed
enriquemr opened this issue Aug 3, 2013 · 3 comments
Closed

Managing xAxis and yAxis options #9

enriquemr opened this issue Aug 3, 2013 · 3 comments

Comments

@enriquemr
Copy link

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"
}
}

@pablojim
Copy link
Owner

pablojim commented Aug 7, 2013

Hi this is not a problem with the directive. It is how you have defined the xAxis:

See: http://jsfiddle.net/U4KVe/1/

@enriquemr
Copy link
Author

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

@pablojim
Copy link
Owner

pablojim commented Aug 7, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants