artem_niko Posted November 27, 2022 Share Posted November 27, 2022 Hello! How change color of this black horizontal and vertical line (not found property)? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 27, 2022 Share Posted November 27, 2022 Hello, Do you mean axes? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 28, 2022 Author Share Posted November 28, 2022 10 hours ago, Sherzod said: Hello, Do you mean axes? Yes Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2022 Share Posted November 28, 2022 31 minutes ago, artem_niko said: Yes Don't know yet. But I think it's possible, I guess need to focus on chart themes. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 28, 2022 Author Share Posted November 28, 2022 1 minute ago, Sherzod said: Пока не знаю. Но я думаю, что это возможно, я думаю, нужно сосредоточиться на темах диаграммы. I've reviewed every property. The available properties do not change the color in any way. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2022 Share Posted November 28, 2022 5 minutes ago, artem_niko said: I've reviewed every property. The available properties do not change the color in any way. I know. I am not talking about these properties. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 28, 2022 Author Share Posted November 28, 2022 On, are we solving this question at all? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2022 Share Posted November 28, 2022 7 minutes ago, artem_niko said: On, are we solving this question at all? Yes I think, but it takes time to analyze. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 28, 2022 Author Share Posted November 28, 2022 Just now, Sherzod said: Yes I think, but it takes time to analyze. Ok, I'm will be waiting answer from you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2022 Share Posted November 28, 2022 Something like this? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 29, 2022 Author Share Posted November 29, 2022 8 hours ago, Sherzod said: Something like this? Yes, like this, for example Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 29, 2022 Share Posted November 29, 2022 1 hour ago, artem_niko said: Yes, like this Okay. Try this approach: function chart.beforeInit(sender, config) { //axisY config.axes[0].renderer = function(s, v, a) { a.attr.canvasAttributes.strokeStyle='red'; return v }; //axisX config.axes[1].renderer = function(s, v, a) { a.attr.canvasAttributes.strokeStyle='green'; return v }; } 1 Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 30, 2022 Author Share Posted November 30, 2022 21 hours ago, Sherzod said: Okay. Try this approach: function chart.beforeInit(sender, config) { //axisY config.axes[0].renderer = function(s, v, a) { a.attr.canvasAttributes.strokeStyle='red'; return v }; //axisX config.axes[1].renderer = function(s, v, a) { a.attr.canvasAttributes.strokeStyle='green'; return v }; } Thank you, @Sherzod! But, see: As you can see, it adds a signature on the left and numbers on the bottom, and I don't need to display them... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 30, 2022 Share Posted November 30, 2022 Ok. I will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 30, 2022 Share Posted November 30, 2022 And what were your settings? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 30, 2022 Author Share Posted November 30, 2022 45 minutes ago, Sherzod said: And what were your settings? Settings for tha what? Axes? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 30, 2022 Share Posted November 30, 2022 Yes... Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 30, 2022 Author Share Posted November 30, 2022 2 minutes ago, Sherzod said: Yes... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 30, 2022 Share Posted November 30, 2022 Try this approach: function chart.beforeInit(sender, config) { //axisY config.axes[0].renderer = function(s, v, a) { a.attr.canvasAttributes.strokeStyle='red'; return '' }; //axisX config.axes[1].renderer = function(s, v, a) { a.attr.canvasAttributes.strokeStyle='green'; return '' }; } 1 Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 30, 2022 Author Share Posted November 30, 2022 3 minutes ago, Sherzod said: Try this approach: function chart.beforeInit(sender, config) { //axisY config.axes[0].renderer = function(s, v, a) { a.attr.canvasAttributes.strokeStyle='red'; return '' }; //axisX config.axes[1].renderer = function(s, v, a) { a.attr.canvasAttributes.strokeStyle='green'; return '' }; } And this working is perfect! Thank you, @Sherzod! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.