{"id":905,"date":"2012-02-23T07:28:04","date_gmt":"2012-02-23T10:28:04","guid":{"rendered":"http:\/\/www.franklinjr.com\/blog\/?p=905"},"modified":"2012-02-23T07:28:04","modified_gmt":"2012-02-23T10:28:04","slug":"exemplo-owc11-chartspace","status":"publish","type":"post","link":"https:\/\/www.franklinjr.com\/blog\/index.php\/2012\/02\/23\/exemplo-owc11-chartspace\/","title":{"rendered":"Exemplo OWC11.ChartSpace"},"content":{"rendered":"<p>Abaixo um exemplo funcional do OWC11.ChartSpace<\/p>\n<pre lang=\"asp\" line=\"1\"> <%\r\nSet oChart = CreateObject(\"OWC11.ChartSpace\")\r\nSet c = oChart.Constants\r\noChart.Border.Color = c.chColorNone\r\nDim categories(3), Vals(3), Vals2(3)\r\n' cr\u00ede um array que represente os valores da primeira s\u00e9rie.\r\nVals(0) = 20\r\nVals(1) = 40\r\nVals(2) = 30\r\nVals(3) = 10\r\n' cr\u00ede um array que represente os valores da segunda s\u00e9rie.\r\nVals2(0) = 35\r\nVals2(1) = 35\r\nVals2(2) = 25\r\nVals2(3) = 5\r\n' gr\u00e1fico de coluna com as duas s\u00e9ries e quatro categorias.\r\n' cr\u00ede um array que represente as categorias, as categorias ser\u00e3o as mesmas para as duas s\u00e9ries.\r\ncategories(0) = \"Zona Norte\"\r\ncategories(1) = \"Zona Sul\"\r\ncategories(2) = \"Zona Oeste\"\r\ncategories(3) = \"Zona Leste\"\r\nWith oChart\r\n' adicionando um objeto do gr\u00e1fico.\r\n.Charts.Add\r\n' adicionando o tipo do gr\u00e1fico.\r\n.Charts(0).Type = oChart.Constants.chChartTypeColumn3d\r\n' adicionando a primeira s\u00e9rie ao gr\u00e1fico.\r\n.Charts(0).SeriesCollection.Add\r\n' ajustando o subt\u00edtulo da s\u00e9rie (o texto da legenda).\r\n.Charts(0).SeriesCollection(0).Caption = \"Faturamento por Regi\u00e3o - Setembro\"\r\n' adicionando as categorias e os valores da primeira s\u00e9rie.\r\n.Charts(0).SeriesCollection(0).SetData c.chDimCategories, c.chDataLiteral, categories\r\n.Charts(0).SeriesCollection(0).SetData c.chDimValues, c.chDataLiteral, Vals\r\nEnd With\r\n' adicionando a segunda s\u00e9rie ao gr\u00e1fico, legenda, categorias e valores.\r\nWith oChart\r\n.Charts(0).SeriesCollection.Add\r\n.Charts(0).SeriesCollection(1).Caption = \"Faturamento por Regi\u00e3o - Agosto\"\r\n.Charts(0).SeriesCollection(1).SetData c.chDimCategories, c.chDataLiteral, Categories\r\n.Charts(0).SeriesCollection(1).SetData c.chDimValues, c.chDataLiteral, Vals2\r\n.Charts(0).HasLegend = True\r\n.Charts(0).HasTitle = True\r\nEnd With\r\nResponse.Expires = 0\r\nResponse.Buffer = true\r\nResponse.Clear\r\nResponse.ContentType = \"image\/gif\"\r\n'ajustando o tamanho do gr\u00e1fico (figura).\r\nResponse.BinaryWrite oChart.GetPicture(\"gif\",750, 400)\r\n%><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Abaixo um exemplo funcional do OWC11.ChartSpace<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75,425],"tags":[559,466,423],"class_list":["post-905","post","type-post","status-publish","format-standard","hentry","category-asp","category-iis","tag-asp","tag-owc11","tag-windows-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>Exemplo OWC11.ChartSpace - Franklin Jr.<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.franklinjr.com\/blog\/index.php\/2012\/02\/23\/exemplo-owc11-chartspace\/\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/index.php\\\/2012\\\/02\\\/23\\\/exemplo-owc11-chartspace\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exemplo OWC11.ChartSpace\"}]}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Exemplo OWC11.ChartSpace - Franklin Jr.","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":"https:\/\/www.franklinjr.com\/blog\/index.php\/2012\/02\/23\/exemplo-owc11-chartspace\/","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/www.franklinjr.com\/blog\/index.php\/2012\/02\/23\/exemplo-owc11-chartspace\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.franklinjr.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Exemplo OWC11.ChartSpace"}]}]}},"_links":{"self":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=905"}],"version-history":[{"count":7,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/905\/revisions"}],"predecessor-version":[{"id":912,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/905\/revisions\/912"}],"wp:attachment":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}