I have charts with 15-17 lines and the cursor modifier cuts off the view at 6 on phones. It looks great on tablets, but on phones, as said, only shows six. Is there a way to decrease the text size in the modifier to fit more lines?
Asked
Active
Viewed 352 times
0
-
Since this is a public website, for any programming questions, you're gonna have to tell the community what chart component you are using, maybe a code sample, a screenshot, that sort of thing. Otherwise the community will downvote you until you're unable to use the website – Dr. Andrew Burnett-Thompson Jul 09 '18 at 16:11
1 Answers
1
As for Android I would suggest to take a look on Custom Cursors example and use it as a base. In this example CustomXySeriesTooltip inherits from TextView which is used to render tooltip's text. So you can set font size for it like on regular TextView ( in ctor or internalUpdate override ):
public CustomXySeriesTooltip(Context context, XySeriesInfo seriesInfo) {
super(context, seriesInfo);
this.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10);
}
And the code for Xamarin.Android should be similar to Java one.
As for iOS - you can use dataStyle property provided by SCICursorModifierStyle which allows to specify font size:
SCITextFormattingStyle * textFormatting = [SCITextFormattingStyle new];
textFormatting.fontSize = 16;
textFormatting.fontName = @"Helvetica";
cursor.style.dataStyle = textFormatting;
Or you can create custom modifier like in this example.

Yura Khariton
- 484
- 2
- 6