{"id":3763,"date":"2019-03-25T17:45:50","date_gmt":"2019-03-25T20:45:50","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/kb89687-e3charts-fitall-method-not-working\/"},"modified":"2019-05-29T10:19:28","modified_gmt":"2019-05-29T13:19:28","slug":"kb89687-e3charts-fitall-method-not-working","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/","title":{"rendered":"KB-89687: E3Chart&#8217;s FitAll  method not working."},"content":{"rendered":"<div align=\"justify\"><b>Question:<\/b><\/p>\n<p><i>FitAll <\/i>method does not work properly when I use a Historic scale. The pens and the queries are added at runtime, the method is executed, but the command must be applied twice for proper fitting. Why is it so?<\/p>\n<p><b>Solution:<\/b><\/p>\n<p>This problem happens because <i>FitAll <\/i>method is being executed before the query has finished. In this case, you will need to add the command to E3Chart&#8217;s <i>OnQueryFinish <\/i>event, which takes place whenever one or more queries are finished in the object.<\/p>\n<p><b>NOTE<\/b>: When the event is generated, the call to <i>FitAll <\/i>or <i>FitPen <\/i>methods can cause disturbances if the automatic Query is being used, since these methods are activate other Queries until all data are read.<\/p>\n<p>Another possible situation when the Historic scale is being employed is the pen not being displayed wiht all possible points, which will require executing <i>FitAll<\/i> method several times in order to show all data from the pen. This will happen exclusively due to performance issues, because the E3Chart was not developed to load all data in the DB at the same time. If <i>AutoQuery <\/i>property is on, the filters applied at <b>E3Timestamp <\/b>field will bring only the necessary data for the area displayed on E3Chart.<\/p>\n<p>In this case, if the user needs <i>FitAll <\/i>to fit all points in the pen, the solution is to <b>DISABLE <\/b>the automatic query option.<\/p>\n<p>The attached demo application illustrates how to add the pen and the query at run time with FitAll method at E3Chart&#8217;s <i>OnQueryFinish <\/i>event.<\/div>\n<div align=\"justify\"><\/div>\n<h3 align=\"justify\">Attachments:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/OnQueryFinish.zip\">OnQueryFinish.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: FitAll method does not work properly when I use a Historic scale. The pens and the queries are added at runtime, the method is executed, but the command must&hellip;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[742],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>KB-89687: E3Chart&#039;s FitAll method not working. - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KB-89687: E3Chart&#039;s FitAll method not working.\" \/>\n<meta property=\"og:description\" content=\"Question: FitAll method does not work properly when I use a Historic scale. The pens and the queries are added at runtime, the method is executed, but the command must&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:45:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-29T13:19:28+00:00\" \/>\n<meta name=\"author\" content=\"D\u00e9lio Damin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"D\u00e9lio Damin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/\"},\"author\":{\"name\":\"D\u00e9lio Damin\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/be597eff34b5f24af940a55332870778\"},\"headline\":\"KB-89687: E3Chart&#8217;s FitAll method not working.\",\"datePublished\":\"2019-03-25T20:45:50+00:00\",\"dateModified\":\"2019-05-29T13:19:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/\"},\"wordCount\":266,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"E3Chart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/\",\"name\":\"[:pt]KB-89687: E3Chart's FitAll method not working.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:45:50+00:00\",\"dateModified\":\"2019-05-29T13:19:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB-89687: E3Chart&#8217;s FitAll method not working.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/be597eff34b5f24af940a55332870778\",\"name\":\"D\u00e9lio Damin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fdf251d36430f8dd22144c3f1bc53376?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fdf251d36430f8dd22144c3f1bc53376?s=96&d=mm&r=g\",\"caption\":\"D\u00e9lio Damin\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/delio\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"KB-89687: E3Chart's FitAll method not working. - Elipse Knowledgebase","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:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]KB-89687: E3Chart's FitAll method not working.[:] - Elipse Knowledgebase","og_description":"Question: FitAll method does not work properly when I use a Historic scale. The pens and the queries are added at runtime, the method is executed, but the command must&hellip;","og_url":"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:45:50+00:00","article_modified_time":"2019-05-29T13:19:28+00:00","author":"D\u00e9lio Damin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"D\u00e9lio Damin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/"},"author":{"name":"D\u00e9lio Damin","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/be597eff34b5f24af940a55332870778"},"headline":"KB-89687: E3Chart&#8217;s FitAll method not working.","datePublished":"2019-03-25T20:45:50+00:00","dateModified":"2019-05-29T13:19:28+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/"},"wordCount":266,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["E3Chart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/","url":"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/","name":"[:pt]KB-89687: E3Chart's FitAll method not working.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:45:50+00:00","dateModified":"2019-05-29T13:19:28+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/kb89687-e3charts-fitall-method-not-working\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"KB-89687: E3Chart&#8217;s FitAll method not working."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/be597eff34b5f24af940a55332870778","name":"D\u00e9lio Damin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fdf251d36430f8dd22144c3f1bc53376?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fdf251d36430f8dd22144c3f1bc53376?s=96&d=mm&r=g","caption":"D\u00e9lio Damin"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/delio\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3763"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=3763"}],"version-history":[{"count":1,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3763\/revisions"}],"predecessor-version":[{"id":5114,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3763\/revisions\/5114"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=3763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=3763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=3763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}