{"id":237,"date":"2025-03-13T09:09:11","date_gmt":"2025-03-13T09:09:11","guid":{"rendered":"https:\/\/documentation.iqonic.design\/graphina\/?p=237"},"modified":"2025-03-13T09:21:01","modified_gmt":"2025-03-13T09:21:01","slug":"dynamic-charts-a-comprehensive-guide","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/graphina\/dynamic-charts-a-comprehensive-guide\/","title":{"rendered":"Dynamic Charts: A Comprehensive Guide"},"content":{"rendered":"<div class=\"nolwrap\">\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Retrieve Dynamic Data Using SQL-Builder<\/strong><\/h2>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Introduction<\/strong><\/h4>\n\n\n\n<p>This guide will walk you through the fastest way to integrate dynamic WordPress charts from a MySQL database using PHP.<\/p>\n\n\n\n<p>Previously, we discussed what dynamic data is and the commonly used data sources. Now, it&#8217;s time to put that knowledge into action by converting static charts into dynamic ones using <strong>SQL Builder<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Fetching Capital Column Data<\/strong><\/h4>\n\n\n\n<p>To enable uppercase column names, toggle the option as shown in the image.<\/p>\n\n\n\n<p><strong>Note:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If the offset and limit are unnecessary, set them to null.<\/li>\n\n\n\n<li>You can extract data from any table within your existing WordPress database.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Steps to Convert Static Charts into Dynamic Charts Using SQL Builder<\/strong><\/h4>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 1: Select the Chart<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open <strong>Graphina \u2013 WordPress Chart Plugin<\/strong>.<\/li>\n\n\n\n<li>Choose the chart where you want to display dynamic data (e.g., Line Chart).<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 2: Change Data Option from Manual to Dynamic<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to the chart data option.<\/li>\n\n\n\n<li>Switch from <strong>&#8220;manual&#8221;<\/strong> to <strong>&#8220;dynamic&#8221;<\/strong>.<\/li>\n\n\n\n<li>A message stating &#8220;No Data Available&#8221; will appear until a data source is selected.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 3: Set Dynamic Data to SQL<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select the <strong>Dynamic Data Option<\/strong>.<\/li>\n\n\n\n<li>Change the type to <strong>SQL Builder<\/strong>.<\/li>\n\n\n\n<li>A text area will appear for entering raw SQL queries.<\/li>\n\n\n\n<li>As you input the SQL query, the data executes automatically.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 4: Select the Table<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on <strong>&#8220;Select Mode&#8221;<\/strong> and choose <strong>&#8220;Table&#8221;<\/strong>.<\/li>\n\n\n\n<li>A drop-down list of available tables will appear.<\/li>\n\n\n\n<li>Select the relevant table to instantly view the data.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 5: Finalizing the SQL Data Integration<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In SQL Builder, click <strong>&#8220;External&#8221;<\/strong>.<\/li>\n\n\n\n<li>Choose the <strong>data table<\/strong> from the dropdown list.<\/li>\n\n\n\n<li>Edit the <strong>SQL Raw Query<\/strong> as needed.<\/li>\n\n\n\n<li>Set the <strong>Y-axis column<\/strong> to define how data is structured in the chart.<\/li>\n\n\n\n<li>Your <strong>SQL Builder Chart<\/strong> is now successfully configured!<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Graphina SQL Builder for Chart\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/oCkpNVNwd9U?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Retrieve Dynamic Data Using CSV<\/strong><\/h2>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Fetching Dynamic Data from a Remote CSV File<\/strong><\/h4>\n\n\n\n<p>This tutorial will show you how to create a WordPress chart using a CSV file within <strong>2 minutes<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure the <code>allow_url_fopen<\/code> directive is enabled in your <code>php.ini<\/code> file.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Steps to Create WordPress Charts Using CSV Files<\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 1: Select the Chart<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open <strong>Graphina \u2013 WordPress Chart Plugin<\/strong>.<\/li>\n\n\n\n<li>Choose a chart (e.g., Area Chart).<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 2: Switch Data Option from Manual to Dynamic<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Change the chart data option from <strong>&#8220;manual&#8221;<\/strong> to <strong>&#8220;dynamic&#8221;<\/strong>.<\/li>\n\n\n\n<li>The &#8220;No Data Available&#8221; message appears until a data source is selected.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 3: Add Data from a CSV File<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select the <strong>Dynamic Data Option<\/strong>.<\/li>\n\n\n\n<li>Change the type to <strong>Remote CSV<\/strong>.<\/li>\n\n\n\n<li>Paste the <strong>CSV file URL<\/strong> into the designated field.<\/li>\n\n\n\n<li>The chart updates automatically.<\/li>\n\n\n\n<li>Modify <strong>chart data elements<\/strong> to fine-tune the visualization.<\/li>\n<\/ul>\n\n\n\n<p>Your <strong>dynamic CSV chart<\/strong> is now ready!<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Graphina  - Dynamic Charts Using CSV File\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/lAXWhxU9Trc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Retrieve Dynamic Data Using Google Sheets<\/strong><\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>Google Sheets offers a wide range of charting options. However, if you want to integrate these charts into WordPress, this guide will show you how to do so effortlessly.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure the <code>allow_url_fopen<\/code> directive is enabled in your <code>php.ini<\/code> file.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Steps to Create WordPress Charts Using Google Sheets<\/strong><\/h4>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 1: Select the Chart<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open <strong>Graphina \u2013 WordPress Chart Plugin<\/strong>.<\/li>\n\n\n\n<li>Choose the desired chart.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 2: Change Data Option from Manual to Dynamic<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to <strong>chart data options<\/strong>.<\/li>\n\n\n\n<li>Switch from <strong>&#8220;manual&#8221;<\/strong> to <strong>&#8220;dynamic&#8221;<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 3: Add Google Sheet Data<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select the <strong>Dynamic Data Option<\/strong>.<\/li>\n\n\n\n<li>Change the type to <strong>Google Sheet<\/strong>.<\/li>\n\n\n\n<li>Copy and paste the <strong>Google Sheets URL<\/strong>.<\/li>\n\n\n\n<li>Publish the sheet to the web and convert it to <strong>CSV format<\/strong>.<\/li>\n\n\n\n<li>Modify the <strong>chart data elements<\/strong> to ensure proper visualization.<\/li>\n<\/ul>\n\n\n\n<p>Your <strong>dynamic Google Sheets chart<\/strong> is now successfully configured!<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Graphina  - Dynamic Charts Using Google Sheets\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/m2vpXYuQ0Y8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Retrieve Dynamic Data Using an API<\/strong><\/h2>\n\n\n\n<p>This guide will help you integrate <strong>external APIs<\/strong> with Graphina to generate dynamic WordPress charts effortlessly.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Understanding API Authentication<\/strong><\/h4>\n\n\n\n<p>Some APIs require an <strong>API Key<\/strong> or <strong>Header Token<\/strong> for authorization.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Steps to Create WordPress Charts Using External APIs<\/strong><\/h4>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 1: Select the Chart<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open <strong>Graphina \u2013 WordPress Chart Plugin<\/strong>.<\/li>\n\n\n\n<li>Choose a chart to visualize API data.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 2: Switch Data Option from Manual to Dynamic<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Change <strong>chart data options<\/strong> from <strong>&#8220;manual&#8221;<\/strong> to <strong>&#8220;dynamic&#8221;<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 3: Add External API Data<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select the <strong>Dynamic Data Option<\/strong>.<\/li>\n\n\n\n<li>Change the type to <strong>API<\/strong>.<\/li>\n\n\n\n<li>Paste the <strong>API URL<\/strong> in the designated field.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 4: Configure Data Elements<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Modify <strong>chart data elements<\/strong> based on API response structure.<\/li>\n\n\n\n<li>The chart updates automatically as per API data.<\/li>\n<\/ul>\n\n\n\n<p>Your <strong>dynamic API-powered WordPress chart<\/strong> is now set up!<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to use header for Api in graphina elemetor charts and graph plugin | Iqonic Design\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/yoyICYymhjg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>With <strong>Graphina \u2013 WordPress Chart Plugin<\/strong>, integrating dynamic data from <strong>SQL, CSV, Google Sheets, and APIs<\/strong> is seamless and efficient. Whether fetching data from a database, an external file, or an API, this guide ensures you can create <strong>stunning dynamic charts<\/strong> effortlessly.<\/p>\n\n\n\n<p>Stay tuned for more tutorials on leveraging Graphina\u2019s powerful capabilities! \ud83d\ude80<\/p>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>How to Retrieve Dynamic Data Using SQL-Builder Introduction This guide will walk you through the fastest way to integrate dynamic WordPress charts from a MySQL database using PHP. Previously, we discussed what dynamic data is and the commonly used data sources. Now, it&#8217;s time to put that knowledge into action by converting static charts into [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"parent":235,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-237","post","type-post","status-publish","format-standard","hentry","category-graphina"],"featured_image_src":null,"author_info":{"display_name":"wordpressadminiq","author_link":"https:\/\/documentation.iqonic.design\/graphina\/author\/wordpressadminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/posts\/237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/comments?post=237"}],"version-history":[{"count":1,"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":242,"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/posts\/237\/revisions\/242"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/posts\/235"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/media?parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/categories?post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/graphina\/wp-json\/wp\/v2\/tags?post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}