I'm having trouble getting my Plotly graph to fit within my Mendix app's container. As shown in the attached chart, there's still significant whitespace despite removing the top margin. Can you suggest additional steps I could take to eliminate this whitespace and achieve a clean design? Additional Information: I've already tried removing the top margin. The chart is currently displayed within a Mendix app. I'd appreciate specific suggestions for addressing the remaining whitespace. I have set all the padding using Mendix styling and css to 0. I have added an additional border around the map here to indicate where all the white space that needs to be removed is. Please let me know if you need more context or clarification.
asked
Matthew Mooney
2 answers
0
Matthew,
In my (mis)adventures with Plotly, I have found the quickest way to resolve these kinds of issues is to create the chart that I want in Plotly Chart Studio (https://chart-studio.plotly.com/) including formatting the chart as I want it to look. Then I can copy the layout JSON from Chart Studio into Mendix. Doing this may help you to troubleshoot if the white space is coming from Plotly or Mendix.
Hope that helps,
Mike
answered
Mike Kumpf
0
Hi Matthew,
You can check out this video https://www.youtube.com/watch?v=ybHd3rvBZpE