|
Using MarkLine.. |
Posted by Ji-hyeon Choi on Jun-17-2024 07:45 |
|
I hope this email finds you well.
I have a few questions regarding the use of mark lines in our charts. In our current implementation, we are adding mark lines as follows:
pTempMark = pXYChart.xAxis()->addMark(pMark->m_dValue, pXYChart.dashLineColor(color, pMark->m_nLineStyle));
pTempMark->setAlignment(pMark->m_nAlign);
pTempMark->setLineWidth(pMark->m_nWidth);
pTempMark->setText(TCHARtoUTF8(pMark->m_strText));
pTempMark->setFontAngle(90);
When the mark line style is set to something other than solid (e.g., dashed lines), the text associated with the mark line is also rendered with the same line style, causing parts of the text to be missing.
Could you please provide guidance on how to prevent the text from being rendered in the same style as the line? We would like the text to always appear solid, regardless of the line style.
Thank you for your assistance.
Best regards,
|
Re: Using MarkLine.. |
Posted by Peter Kwan on Jun-17-2024 10:12 |
|
Hi Ji-hyeon Choi,
You can use:
// Use a normal color for the font
pTempMark->setFontColor(color);
Best Regards
Peter Kwan |
|