2

Is it possible to render regular HTML code in ionic? The reason behind is i want to render a chart, that is generated by a python code (Using Altair)

Thanks.

3
  • 1
    yes, absolutely possible. embed your html code and add css to style it. Commented Oct 17, 2019 at 6:08
  • Hi Sam, sorry. Can you point me to resources on how can i do that? Commented Oct 17, 2019 at 6:50
  • Can you please show Sample Data or HTML your are generating. Commented Oct 17, 2019 at 8:51

1 Answer 1

1

You can render regular html in ionic.
Let's assume you want to render the chart into an ion-item
The code goes something like this

    <ion-list>
         <ion-item>
          <!-- Some code, you may use *ngFor to display the entire data -->
          Example: <div class="exClass"><!-- May be a table -->{{ someData }}</div>
         </ion-item>
    </ion-list>
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.