Closed teraiyamayurcontact closed 6 months ago
@teraiyamayurcontact what do you mean by footer? Can you explain further?
i want to add "Days" word in bottom of graph for native android sdk. Which is selected in above screenshot.
I can see the "Days" is already in the chart. You can use the HICredits class if you want to have it at the bottom. Check the example:
HICredits credits = new HICredits();
credits.setText("Days");
credits.setPosition(new HIAlignObject());
credits.getPosition().setAlign("center");
options.setCredits(credits);
looks too small. Can we size bigger for text ?
credits.getStyle().setFontSize("20");
i have try above but its get crash.
First, you need to initialize the object. Like this:
credits.setStyle(new HICSSObject());
credits.getStyle().setFontSize("20");
Hello,
its touching x-axis. can we do spacing between both of them. Please review attached screenshot.
No, sorry, spacing is not supported for HICredits
. Although, you can use android native TextView
under the chart to achieve the same.
Textview i have added but not working
I'm sorry but I can't help you with android TextView
since it's not within the scope of Highcharts but android itself. Although, what I can suggest is to make sure that when you put HIChartView
and TextView
in a single layout experiment with HIChartView
width and height to avoid the chart overlapping your other android views (I strongly recommend using specified values in dp when it comes to the height of chart since _wrapcontent and _matchparent are not working correctly when the chart is one of the elements of more complicated android layout, example below)
<com.highsoft.highcharts.core.HIChartView
android:layout_width="match_parent"
android:id="@+id/chartview"
android:layout_height="500dp"/>
<TextView
android:id="@+id/texdt"
android:text="Text"
android:textSize="40sp"
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Closing due to inactivity. Please feel free to reopen the ticket if you have any further questions.
Hello
i want to add footer in Highchart android native sdk .