AnyChart / AnyChart-React

Intuitive and easy to use React plugin that allows you to create and work with AnyChart JavaScript Charts
https://www.anychart.com
Apache License 2.0
39 stars 30 forks source link

Using charts in a <table> tag #10

Closed reboss closed 5 years ago

reboss commented 5 years ago

I'm trying to align charts beside each other inside a table. I notice that there's a lot of extra styling the library associates with the tag that is preventing me from doing this. Any suggestions on how to get around this?

I'd like to be able to do something like this, with the two AnyChart's to be positioned beside each other:

                <table>
                    <tr>
                        <td>
                            <AnyChart  />
                        </td>
                        <td>
                            <AnyChart />
                        </td>
                    </tr>
                </table>

Thanks

reboss commented 5 years ago

Turns out it was just a matter of adding an id to the props. Feel free to close 😅