JohnD Active Member Licensed User Longtime User Sep 17, 2014 #1 I'm trying to add a legend to a Line Chart. I read Erel's answer to a posted question that it is implemented the same as the legend in the Pie Chart example. My problem is that Charts.DrawPie() returns a bitmap. While Charts.DrawLineChart() returns a string. Also, Charts.AddPieItem() has a parameter for the legend "Item", but I can't seem to find the equivalent method/parameter for Line charts. Any help w/b appreciated. Thanks, JD.
I'm trying to add a legend to a Line Chart. I read Erel's answer to a posted question that it is implemented the same as the legend in the Pie Chart example. My problem is that Charts.DrawPie() returns a bitmap. While Charts.DrawLineChart() returns a string. Also, Charts.AddPieItem() has a parameter for the legend "Item", but I can't seem to find the equivalent method/parameter for Line charts. Any help w/b appreciated. Thanks, JD.
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2014 #2 You will need to go over DrawPie code and see how the legend bitmap is created and then implement it for lines chart. Upvote 0
You will need to go over DrawPie code and see how the legend bitmap is created and then implement it for lines chart.