As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #960542
Centering a wpDataTables chart in Word Press
Closed

Comments

  •  2
    Joe Howie started the conversation

    I've created a pie chart using wpDataTables and successfully embedded it in a WordPress Post. However, the pie chart aligns to the left margin and I'd like to center it between the left and right margins. How can I do that?

  • [deleted] replied

    Hi Joe,

    Could you please send me a link so I can take a look

  •  2
    Joe Howie replied

    Hi Miljko,

    I was trying to use the chart in a post, but I copied the relevant parts of the post into the following page which exhibits the same type of behavior (i.e., doesn't center the chart):

    http://beyondrecognition.net/testing-chart/

  • [deleted] replied

    Hi Joe,

    Please try to add this code

    div#wpDataChart_1>div>div {
        margin: 0 auto;
    }
    

    in Custom CSS field on Settings page of our plugin

  •  2
    Joe Howie replied

    Hi Miljko,

    Thanks, that did the trick!

    Joe