{"id":3891,"date":"2023-11-04T23:13:54","date_gmt":"2023-11-04T23:13:54","guid":{"rendered":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/"},"modified":"2023-11-05T05:48:29","modified_gmt":"2023-11-05T05:48:29","slug":"how-to-use-c3-js-for-data-visualization-in-javascript","status":"publish","type":"post","link":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/","title":{"rendered":"How to Use C3.js for Data Visualization in JavaScript"},"content":{"rendered":"

Data visualization is a valuable tool for understanding and analyzing data. It allows us to present complex information in a clear and meaningful way. In JavaScript, there are numerous libraries available for creating visualizations, and one of the most popular ones is C3.js.<\/p>\n

C3.js is a powerful and flexible JavaScript library that is built on top of D3.js. It provides a higher-level API for creating various types of charts, such as line charts, bar charts, pie charts, and more. In this tutorial, we will explore the basics of C3.js and learn how to create stunning visualizations in JavaScript.<\/p>\n

Prerequisites<\/h2>\n

To follow along with this tutorial, you’ll need some prior knowledge of JavaScript and HTML. Additionally, you’ll need a text editor and a web browser to run the code examples.<\/p>\n

Getting Started<\/h2>\n

To get started with C3.js, we first need to include the necessary JavaScript and CSS files in our HTML document. You can either download the files from the official C3.js website or include them via a CDN (Content Delivery Network) as shown below:<\/p>\n

<!DOCTYPE html>\n<html>\n<head>\n    <meta charset=\"UTF-8\">\n    <title>My C3.js Chart<\/title>\n    <link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/c3\/c3.min.css\">\n<\/head>\n<body>\n    <div id=\"chart\"><\/div>\n    <script src=\"https:\/\/unpkg.com\/d3@5.16.0\/dist\/d3.min.js\"><\/script>\n    <script src=\"https:\/\/unpkg.com\/c3@0.7.20\/c3.min.js\"><\/script>\n    <script src=\"app.js\"><\/script>\n<\/body>\n<\/html>\n<\/code><\/pre>\n

In this example, we have included the C3.js CSS file and the necessary JavaScript files. We have also added a <div><\/code> element with the ID chart<\/code>, which will be used to render our chart. The app.js<\/code> file is where we will write our JavaScript code.<\/p>\n

Creating a Line Chart<\/h2>\n

Let’s start by creating a simple line chart using C3.js. In our JavaScript code, we need to define the data and the configuration options for our chart. Open the app.js<\/code> file and add the following code:<\/p>\n

\/\/ Data\nvar data = {\n    columns: [\n        ['data1', 30, 200, 100, 400, 150, 250],\n        ['data2', 50, 20, 10, 40, 15, 25]\n    ]\n};\n\n\/\/ Configuration options\nvar options = {\n    bindto: '#chart',\n    data: data,\n    type: 'line'\n};\n\n\/\/ Create the chart\nvar chart = c3.generate(options);\n<\/code><\/pre>\n

In this code, we have defined the data<\/code> variable, which contains an array of columns. Each column represents a data series, where the first element is the label for the series, and the following elements are the data points.<\/p>\n

Next, we have defined the options<\/code> variable, which contains the configuration options for our chart. The bindto<\/code> option specifies the element where the chart will be rendered, and we use the #chart<\/code> ID to target our <div><\/code> element.<\/p>\n

The type<\/code> option specifies the type of chart we want to create. In this case, we have chosen a line chart, but you can also create bar charts, pie charts, and more.<\/p>\n

Finally, we use the c3.generate()<\/code> function to create the chart based on our data and options. If you open your HTML file in a web browser, you should see a line chart rendered inside the <div><\/code> element with the ID chart<\/code>.<\/p>\n

Modifying the Chart<\/h2>\n

C3.js provides a wide range of options and methods to modify the appearance and behavior of the chart. Let’s explore some of the common modifications.<\/p>\n

Axis Labels and Legends<\/h3>\n

We can customize the labels of the axes and the legends of the chart by modifying the options<\/code> variable. Add the following code to your JavaScript file:<\/p>\n

\/\/ Configuration options\nvar options = {\n    bindto: '#chart',\n    data: data,\n    type: 'line',\n    axis: {\n        x: {\n            label: 'X Axis Label',\n        },\n        y: {\n            label: 'Y Axis Label',\n        }\n    },\n    legend: {\n        show: true,\n    }\n};\n<\/code><\/pre>\n

In this code, we have added the axis<\/code> object to the options<\/code> variable. Inside the axis<\/code> object, we can specify the labels for the x-axis and the y-axis. You can customize the labels according to your data and requirements.<\/p>\n

The legend<\/code> object allows us to modify the legend of the chart. We have set show<\/code> to true<\/code> to display the legend, but you can set it to false<\/code> to hide the legend.<\/p>\n

Save the file and refresh your browser to see the updated chart with axis labels and a legend.<\/p>\n

Adding Grid Lines<\/h3>\n

C3.js allows us to add grid lines to the chart to improve readability. By default, grid lines are visible for both the x-axis and the y-axis. However, we can customize the grid lines by modifying the grid<\/code> object in the options<\/code> variable. Add the following code to your JavaScript file:<\/p>\n

\/\/ Configuration options\nvar options = {\n    bindto: '#chart',\n    data: data,\n    type: 'line',\n    axis: {\n        x: {\n            label: 'X Axis Label',\n        },\n        y: {\n            label: 'Y Axis Label',\n        }\n    },\n    legend: {\n        show: true,\n    },\n    grid: {\n        x: {\n            show: true\n        },\n        y: {\n            show: true\n        }\n    }\n};\n<\/code><\/pre>\n

In this code, we have added the grid<\/code> object to the options<\/code> variable. Inside the grid<\/code> object, we have set show<\/code> to true<\/code> for both the x-axis and the y-axis. You can set it to false<\/code> to hide the grid lines.<\/p>\n

Save the file and refresh your browser to see the updated chart with grid lines.<\/p>\n

Changing Chart Types<\/h3>\n

C3.js allows us to change the type of chart dynamically. For example, we can change our line chart to a bar chart with just a few lines of code. Modify your JavaScript file as follows:<\/p>\n

\/\/ Configuration options\nvar options = {\n    bindto: '#chart',\n    data: data,\n    type: 'bar',\n    axis: {\n        x: {\n            label: 'X Axis Label',\n        },\n        y: {\n            label: 'Y Axis Label',\n        }\n    },\n    legend: {\n        show: true,\n    },\n    grid: {\n        x: {\n            show: true\n        },\n        y: {\n            show: true\n        }\n    }\n};\n<\/code><\/pre>\n

In this code, we have changed the type<\/code> option in the options<\/code> variable to 'bar'<\/code>. Now, when you refresh your browser, you should see a bar chart instead of a line chart.<\/p>\n

C3.js supports many other chart types, such as scatter plots, pie charts, and donut charts. You can explore the official documentation to learn more about the available chart types and customization options.<\/p>\n

Handling Data Dynamically<\/h2>\n

So far, we have seen how to create a chart with static data. However, in real-world scenarios, we often need to handle data dynamically. C3.js provides methods to add, remove, and update data points in the chart.<\/p>\n

Adding Data Points<\/h3>\n
document.getElementById('addData').addEventListener('click', function() {\n    chart.load({\n        columns: [\n            ['data3', 130, 150, 200, 300, 200, 100]\n        ]\n    });\n});\n<\/code><\/pre>\n

In this code, we have used the chart.load()<\/code> method to add a new series called data3<\/code> to our chart. The columns<\/code> array contains the new data points for the series.<\/p>\n

To trigger the data addition, we have added an event listener to a button with the ID addData<\/code>. When the button is clicked, the chart.load()<\/code> method is called, and the new data series is added to the chart.<\/p>\n

Removing Data Points<\/h3>\n
document.getElementById('removeData').addEventListener('click', function() {\n    chart.unload('data1');\n});\n<\/code><\/pre>\n

In this code, we have used the chart.unload()<\/code> method to remove the data1<\/code> series from our chart. The series is identified by its name.<\/p>\n

To trigger the data removal, we have added an event listener to a button with the ID removeData<\/code>. When the button is clicked, the chart.unload()<\/code> method is called, and the data1<\/code> series is removed from the chart.<\/p>\n

Updating Data Points<\/h3>\n
document.getElementById('updateData').addEventListener('click', function() {\n    chart.data.colors({\n        data1: 'red',\n        data2: 'blue',\n        data3: 'green'\n    });\n});\n<\/code><\/pre>\n

In this code, we have used the chart.data.colors()<\/code> method to update the colors of our data series. The method takes an object where the keys are the series names, and the values are the new color values.<\/p>\n

To trigger the data update, we have added an event listener to a button with the ID updateData<\/code>. When the button is clicked, the chart.data.colors()<\/code> method is called, and the colors of all the data series are updated.<\/p>\n

Conclusion<\/h2>\n

C3.js is a powerful library for creating stunning visualizations in JavaScript. It provides a higher-level API on top of D3.js, making it easier to create various types of charts with customizable options. In this tutorial, we explored the basics of C3.js, learned how to create a line chart, modify the chart appearance, and handle data dynamically.<\/p>\n

C3.js has a vast range of customization options and features, including tooltips, animations, and data grouping. To learn more, you can refer to the official C3.js documentation<\/a>.<\/p>\n

Happy visualizing!<\/p>\n","protected":false},"excerpt":{"rendered":"

Data visualization is a valuable tool for understanding and analyzing data. It allows us to present complex information in a clear and meaningful way. In JavaScript, there are numerous libraries available for creating visualizations, and one of the most popular ones is C3.js. C3.js is a powerful and flexible JavaScript Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[157,159,155,160,156,158,154],"yoast_head":"\nHow to Use C3.js for Data Visualization in JavaScript - Pantherax Blogs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use C3.js for Data Visualization in JavaScript\" \/>\n<meta property=\"og:description\" content=\"Data visualization is a valuable tool for understanding and analyzing data. It allows us to present complex information in a clear and meaningful way. In JavaScript, there are numerous libraries available for creating visualizations, and one of the most popular ones is C3.js. C3.js is a powerful and flexible JavaScript Continue Reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"Pantherax Blogs\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-04T23:13:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-05T05:48:29+00:00\" \/>\n<meta name=\"author\" content=\"Panther\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Panther\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t \"@context\": \"https:\/\/schema.org\",\n\t \"@graph\": [\n\t {\n\t \"@type\": \"Article\",\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/#article\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/\"\n\t },\n\t \"author\": {\n\t \"name\": \"Panther\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7\"\n\t },\n\t \"headline\": \"How to Use C3.js for Data Visualization in JavaScript\",\n\t \"datePublished\": \"2023-11-04T23:13:54+00:00\",\n\t \"dateModified\": \"2023-11-05T05:48:29+00:00\",\n\t \"mainEntityOfPage\": {\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/\"\n\t },\n\t \"wordCount\": 1095,\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\"\n\t },\n\t \"keywords\": [\n\t \"\\\"Data Visualization in JavaScript\\\"\",\n\t \"\\\"Data Visualization library\\\"\",\n\t \"\\\"Data Visualization\\\"\",\n\t \"\\\"JavaScript library\\\"]\",\n\t \"\\\"JavaScript\\\"\",\n\t \"\\\"Using C3.js\\\"\",\n\t \"[\\\"C3.js\\\"\"\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"WebPage\",\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/\",\n\t \"url\": \"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/\",\n\t \"name\": \"How to Use C3.js for Data Visualization in JavaScript - Pantherax Blogs\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#website\"\n\t },\n\t \"datePublished\": \"2023-11-04T23:13:54+00:00\",\n\t \"dateModified\": \"2023-11-05T05:48:29+00:00\",\n\t \"breadcrumb\": {\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/#breadcrumb\"\n\t },\n\t \"inLanguage\": \"en-US\",\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"ReadAction\",\n\t \"target\": [\n\t \"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/\"\n\t ]\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"BreadcrumbList\",\n\t \"@id\": \"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/#breadcrumb\",\n\t \"itemListElement\": [\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 1,\n\t \"name\": \"Home\",\n\t \"item\": \"http:\/\/localhost:10003\/\"\n\t },\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 2,\n\t \"name\": \"How to Use C3.js for Data Visualization in JavaScript\"\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"WebSite\",\n\t \"@id\": \"http:\/\/localhost:10003\/#website\",\n\t \"url\": \"http:\/\/localhost:10003\/\",\n\t \"name\": \"Pantherax Blogs\",\n\t \"description\": \"\",\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\"\n\t },\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"SearchAction\",\n\t \"target\": {\n\t \"@type\": \"EntryPoint\",\n\t \"urlTemplate\": \"http:\/\/localhost:10003\/?s={search_term_string}\"\n\t },\n\t \"query-input\": \"required name=search_term_string\"\n\t }\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"Organization\",\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\",\n\t \"name\": \"Pantherax Blogs\",\n\t \"url\": \"http:\/\/localhost:10003\/\",\n\t \"logo\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/logo\/image\/\",\n\t \"url\": \"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg\",\n\t \"contentUrl\": \"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg\",\n\t \"width\": 1024,\n\t \"height\": 1024,\n\t \"caption\": \"Pantherax Blogs\"\n\t },\n\t \"image\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/logo\/image\/\"\n\t }\n\t },\n\t {\n\t \"@type\": \"Person\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7\",\n\t \"name\": \"Panther\",\n\t \"image\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/image\/\",\n\t \"url\": \"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g\",\n\t \"contentUrl\": \"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g\",\n\t \"caption\": \"Panther\"\n\t },\n\t \"sameAs\": [\n\t \"http:\/\/localhost:10003\"\n\t ],\n\t \"url\": \"http:\/\/localhost:10003\/author\/pepethefrog\/\"\n\t }\n\t ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use C3.js for Data Visualization in JavaScript - Pantherax Blogs","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"How to Use C3.js for Data Visualization in JavaScript","og_description":"Data visualization is a valuable tool for understanding and analyzing data. It allows us to present complex information in a clear and meaningful way. In JavaScript, there are numerous libraries available for creating visualizations, and one of the most popular ones is C3.js. C3.js is a powerful and flexible JavaScript Continue Reading","og_url":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/","og_site_name":"Pantherax Blogs","article_published_time":"2023-11-04T23:13:54+00:00","article_modified_time":"2023-11-05T05:48:29+00:00","author":"Panther","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Panther","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/#article","isPartOf":{"@id":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/"},"author":{"name":"Panther","@id":"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7"},"headline":"How to Use C3.js for Data Visualization in JavaScript","datePublished":"2023-11-04T23:13:54+00:00","dateModified":"2023-11-05T05:48:29+00:00","mainEntityOfPage":{"@id":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/"},"wordCount":1095,"publisher":{"@id":"http:\/\/localhost:10003\/#organization"},"keywords":["\"Data Visualization in JavaScript\"","\"Data Visualization library\"","\"Data Visualization\"","\"JavaScript library\"]","\"JavaScript\"","\"Using C3.js\"","[\"C3.js\""],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/","url":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/","name":"How to Use C3.js for Data Visualization in JavaScript - Pantherax Blogs","isPartOf":{"@id":"http:\/\/localhost:10003\/#website"},"datePublished":"2023-11-04T23:13:54+00:00","dateModified":"2023-11-05T05:48:29+00:00","breadcrumb":{"@id":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/localhost:10003\/how-to-use-c3-js-for-data-visualization-in-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/localhost:10003\/"},{"@type":"ListItem","position":2,"name":"How to Use C3.js for Data Visualization in JavaScript"}]},{"@type":"WebSite","@id":"http:\/\/localhost:10003\/#website","url":"http:\/\/localhost:10003\/","name":"Pantherax Blogs","description":"","publisher":{"@id":"http:\/\/localhost:10003\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/localhost:10003\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/localhost:10003\/#organization","name":"Pantherax Blogs","url":"http:\/\/localhost:10003\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10003\/#\/schema\/logo\/image\/","url":"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg","contentUrl":"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg","width":1024,"height":1024,"caption":"Pantherax Blogs"},"image":{"@id":"http:\/\/localhost:10003\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7","name":"Panther","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10003\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g","caption":"Panther"},"sameAs":["http:\/\/localhost:10003"],"url":"http:\/\/localhost:10003\/author\/pepethefrog\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/3891"}],"collection":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/comments?post=3891"}],"version-history":[{"count":1,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/3891\/revisions"}],"predecessor-version":[{"id":4667,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/3891\/revisions\/4667"}],"wp:attachment":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/media?parent=3891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/categories?post=3891"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/tags?post=3891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}