This question is locked. New answers and comments are not allowed.
I am also trying to customise the legend's appearance. Not working :(
I want to make the legend items much bigger and change the shape of the indicator icon:
TKChartLegendContainer *legendContainerScrollView = chart.legend.container;
legendContainerScrollView.stack.itemSpacing = 50;
TKChartLegendItem *item = [legendContainerScrollView itemAtIndex:0];
item.style.iconSize = CGSizeMake(50, 50); // Not working
Not working...
I also want to change the shape of the legend's indicator to square:
I see in the debugger that :
TKChartLegendItem *item = [legendContainerScrollView itemAtIndex:0];TKChartLegendItem *item = [legendContainerScrollView itemAtIndex:0];
// item.icon is a TKChartShapeView - would like to change the shape to "Square"
Also I see that TKChartLegendItem.h declares a protocol "TKChartLegendItemDelegate"
But no way to become the delegate without sub classing TKChartSeries:
@discussion The legend asks all series first about the count of legend items they will provide and then gets this count of items.
But I don't see any implementation or declaration in TKSeries of this protocol.
It also seems like a lot of work for something very trivial
Here is the appearance I want to achieve in the attached file:
I want to make the legend items much bigger and change the shape of the indicator icon:
TKChartLegendContainer *legendContainerScrollView = chart.legend.container;
legendContainerScrollView.stack.itemSpacing = 50;
TKChartLegendItem *item = [legendContainerScrollView itemAtIndex:0];
item.style.iconSize = CGSizeMake(50, 50); // Not working
Not working...
I also want to change the shape of the legend's indicator to square:
I see in the debugger that :
TKChartLegendItem *item = [legendContainerScrollView itemAtIndex:0];TKChartLegendItem *item = [legendContainerScrollView itemAtIndex:0];
// item.icon is a TKChartShapeView - would like to change the shape to "Square"
Also I see that TKChartLegendItem.h declares a protocol "TKChartLegendItemDelegate"
But no way to become the delegate without sub classing TKChartSeries:
@discussion The legend asks all series first about the count of legend items they will provide and then gets this count of items.
But I don't see any implementation or declaration in TKSeries of this protocol.
It also seems like a lot of work for something very trivial
Here is the appearance I want to achieve in the attached file: