<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ZingSoft Demo</title> <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script> <style></style> </head> <body> <div id='myChart'></div> <script> ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"]; var myConfig = { "graphset": [{ type: "bar", "title": { "text": "Children with a 'Traditional' Stay-at-Home Mother", "color": "black", "font-size": "12px" }, "subtitle": { "text": "% of chidren with a married stay-at-home mother with a working husband", "color": "gray", "font-size": "9px", "font-weight": "normal" }, "scale-y": { "visible": "false" }, "scale-x": { "values": ["1970", "2012"], "tick": { "visible": "false" } }, "plot": { "value-box": {} }, "width": "50%", "height": "100%", "x": "1%", "y": "1%", series: [{ values: [41, 20] }] }, { "width": "50%", "height": "100%", "x": "51%", "y": "1%", "labels": [{ "text": "20%", "font-size": "120px", "font-weight": "bold", "color": "#29a2cc", "x": "10%", "y": "5%" }, { "text": "of children had a", "font-size": "18px", "color": "#666666", "x": "10%", "y": "48%" }, { "text": "traditional stay-at-home mom", "font-size": "18px", "font-weight": "bold", "color": "#29a2cc", "x": "10%", "y": "56%" }, { "text": "in 2012, compared to 41% in 1970", "font-size": "18px", "color": "#666666", "x": "10%", "y": "64%" }, ] } ] }; zingchart.render({ id: 'myChart', data: myConfig, height: 300, width: 700 }); </script> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ZingSoft Demo</title> <script src="https://cdn.zingchart.com/zingchart.min.js"></script> </head> <body> <div id='myChart'></div> </body> </html>
var myConfig = { "graphset": [{ type: "bar", "title": { "text": "Children with a 'Traditional' Stay-at-Home Mother", "color": "black", "font-size": "12px" }, "subtitle": { "text": "% of chidren with a married stay-at-home mother with a working husband", "color": "gray", "font-size": "9px", "font-weight": "normal" }, "scale-y": { "visible": "false" }, "scale-x": { "values": ["1970", "2012"], "tick": { "visible": "false" } }, "plot": { "value-box": {} }, "width": "50%", "height": "100%", "x": "1%", "y": "1%", series: [{ values: [41, 20] }] }, { "width": "50%", "height": "100%", "x": "51%", "y": "1%", "labels": [{ "text": "20%", "font-size": "120px", "font-weight": "bold", "color": "#29a2cc", "x": "10%", "y": "5%" }, { "text": "of children had a", "font-size": "18px", "color": "#666666", "x": "10%", "y": "48%" }, { "text": "traditional stay-at-home mom", "font-size": "18px", "font-weight": "bold", "color": "#29a2cc", "x": "10%", "y": "56%" }, { "text": "in 2012, compared to 41% in 1970", "font-size": "18px", "color": "#666666", "x": "10%", "y": "64%" }, ] } ] }; zingchart.render({ id: 'myChart', data: myConfig, height: 300, width: 700 });