You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Staffman78 (via GitHub)" <gi...@apache.org> on 2023/10/16 10:14:41 UTC
[I] MarkLine of custom xAxis pos [echarts]
Staffman78 opened a new issue, #19211:
URL: https://github.com/apache/echarts/issues/19211
### What problem does this feature solve?
If I have xAxis categories of [1,2,3,4,5,6,7]
And I need a vertical markLine with x-value of i.e. 2.86. Now it I can only use index of data values. How do I set the line to be a custom value and not "snap" it to my xAxis values?
### What does the proposed API look like?
markLine: {
symbol: 'circle',
data: [{
xvalue: 4.4,
}]
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] MarkLine of custom xAxis pos [echarts]
Posted by "Staffman78 (via GitHub)" <gi...@apache.org>.
Staffman78 commented on issue #19211:
URL: https://github.com/apache/echarts/issues/19211#issuecomment-1765731652
Hi and thanks for reply, but this won't work since my value axis is the y-axis and if both of them are value axis, my chart renders not correct since I still want specific values on the xaxis (even though they are in fact numbers, they function as categories).
This is what I have now, but then I cannot put the vertical markLine where I want on the xaxis (not between numbers, i.e. 2.5)

This happens when I set xaxis to be type: value. Then my chart is not working.

My goal is to have this:

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] MarkLine of custom xAxis pos [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19211:
URL: https://github.com/apache/echarts/issues/19211#issuecomment-3439177034
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] MarkLine of custom xAxis pos [echarts]
Posted by "Staffman78 (via GitHub)" <gi...@apache.org>.
Staffman78 commented on issue #19211:
URL: https://github.com/apache/echarts/issues/19211#issuecomment-1765735295
Hi again, I think I solved it :-)
If I instead put everything as a 2-dim array as series data, I get the result I need:

Is this how you meant? Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] MarkLine of custom xAxis pos [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19211: MarkLine of custom xAxis pos
URL: https://github.com/apache/echarts/issues/19211
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] MarkLine of custom xAxis pos [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19211:
URL: https://github.com/apache/echarts/issues/19211#issuecomment-1766747753
yes, you did it right.
But this use-case raises a valid question. Currently **_xAxis.data_ overrides _xAxis.type_**, which is explained in the API and we are accustomed to it. But new users are rightfully **confused**. What you were trying to do makes sense and should be allowed:
```xAxis: { type:'value', data: [1,2,3] }```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] MarkLine of custom xAxis pos [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19211:
URL: https://github.com/apache/echarts/issues/19211#issuecomment-1764867143
xAxis needs to be type='value', not 'category', then MarkLine could be positioned anywhere
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] MarkLine of custom xAxis pos [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19211:
URL: https://github.com/apache/echarts/issues/19211#issuecomment-3412842541
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org