|  | 
| how can I change line width of legend on chart? | 
| Post Reply   | 
| Author | |
| dj1026   Newbie   Joined: 01 December 2022 Status: Offline Points: 8 |  Post Options  Thanks(0)  Quote  Reply  Topic: how can I change line width of legend on chart? Posted: 01 December 2022 at 9:06pm | 
| 
   hello everyone. I want to change width of those lines on legend of XTPChart below. I used codes to make those lines thicker. but it doesn't work. /**/ CXTPChartContent* pContent = m_chartViewAll.GetContent(); CSize sz; sz.SetSize(50, 50);	// I thought I can change line width with second argument of SetSize() pContent->GetLegend()->SetMarkerSize(sz);					 /**/ would you help me? best regards. I'm using Xtreme Chart Pro v15.3.1. | |
|  | |
| dj1026   Newbie   Joined: 01 December 2022 Status: Offline Points: 8 |  Post Options  Thanks(1)  Quote  Reply  Posted: 02 December 2022 at 2:45am | 
| 
   I solved this problem. you can change the line width with SetLineThickness() of CXTPLegendItem. /**/ CXTPChartContent* pContent = m_chartViewAll.GetContent(); CXTPChartSeriesCollection* pSeriesCollection = pContent->GetSeries(); for (int i = 0; i < pSeriesCollection->GetCount(); i++) {   pSeriesCollection->GetAt(i)->GetLegendItem()->SetLineThickness(10); } /**/ | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |