{"id":4473,"date":"2017-01-23T03:00:04","date_gmt":"2017-01-22T19:00:04","guid":{"rendered":"http:\/\/www.finereport.com\/en\/?p=4473"},"modified":"2019-10-14T16:18:17","modified_gmt":"2019-10-14T08:18:17","slug":"how-to-make-pre-defined-chart-style","status":"publish","type":"post","link":"https:\/\/www.finereport.com\/en\/product-functions\/how-to-make-pre-defined-chart-style.html","title":{"rendered":"How to Make Pre-defined Chart Style?"},"content":{"rendered":"<h3><strong>1. Description<\/strong><\/h3>\n<p>Pre-defined chart style refers to the styles predefined at Server side and available for all templates so as to display better <a title=\"FineReport data analysis\" href=\"\/en\/help\/data-analysis\" target=\"_blank\">data analysis<\/a>. If a certain pre-defined color style is selected, it will be used as the default style of newly created charts.<\/p>\n<p><span style=\"color: red;\">Note: styles set in the <span style=\"color: blue;\">Chart Series<\/span> of templates are prior to the default style.<\/span><\/p>\n<h3><strong>2. Example<\/strong><\/h3>\n<p><strong>2.1 Built-in color matching scheme<\/strong><\/p>\n<p>Open <a title=\"FineReport BI and reporting tool report designer\" href=\"http:\/\/www.finereport.com\/en\/features\/report-designer\" target=\"_blank\">report designer<\/a>, a great <a title=\"FineReport dashboard software\" href=\"\/en\/help\/dashboards\" target=\"_blank\">dashboard software<\/a>. Click <span style=\"color: purple;\"> Server &gt; Pre-defined Chart Color<\/span> to view several predefined color matching schemes built in the FineReport as shown below:<\/p>\n<p><img src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/17011701.jpg\" alt=\"\" \/><\/p>\n<p><strong>2.2 Pre-defined color for new chart<\/strong><\/p>\n<p>Click Add button in the Pre-defined Chart Color Panel to add new predefined colors. Color matching can be customized in 2 ways, including Precision Setting and Gradient Color as shown below:<\/p>\n<p><img src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/17011702.jpg\" alt=\"\" \/><\/p>\n<p><strong>Precision Setting<\/strong>: total 32 kinds of color are available in Precision Setting, each of which is precisely selected by the user. Click small blocks of color in the interface, \u201cSelect Color\u201d dialog will pop up, in which you can select color as required. All colors displayed in the chart are also horizontally obtained from such 32 kinds of colors in turn. If number of series is more than 32, then these colors will be recycled. In Precision Setting, all color charts are modified in the color chart of default color matching.<\/p>\n<p><strong>Gradient Color<\/strong>: users only need to select start color and end color, and detailed color change may be subject to Series range.<\/p>\n<p><strong>2.3 Setting color matching<\/strong><\/p>\n<p>We use the Precision Setting by clicking the previous three color blocks to configure different colors as shown below:<\/p>\n<p><img src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/17011703.jpg\" alt=\"\" \/><\/p>\n<p><strong>2.4 Effect viewing<\/strong><\/p>\n<p>Open template:<span style=\"color: blue;\"> %FR_HOME%\\WebReport\\WEB-INF\\reportlets\\doc\\advanced\\Chart\\FloatChart.cpt,<\/span> Click <span style=\"color: purple;\"> Chart Property\u00a0&#8211; Style &gt; Series<\/span> to identify that defaults options are selected for color matching and style of the chart in the template as shown below:<\/p>\n<p><img src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/17011704.jpg\" alt=\"\" \/><\/p>\n<p>Click Page Break Preview to identify that its color matching scheme is the same as default style as shown below:<\/p>\n<p><img src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/17011705.jpg\" alt=\"\" \/><\/p>\n<p><strong>2.5 Change template style<\/strong><\/p>\n<p>Click <span style=\"color: purple;\">Chart Property\u00a0&#8211; Style &gt; Series<\/span>, select <span style=\"color: purple;\">Custom &gt; Gradient Color<\/span> for color matching and plane 3D Style as shown below:<\/p>\n<p><img src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/17011706.jpg\" alt=\"\" \/><\/p>\n<p>Save the template. Click Page Break Preview to view the effect as shown below. Template styles are significantly different from defaults styles, i.e. if in the Style settings of Chart Property, defaults options are selected for color matching and style of Series, then the style selected in the default color matching scheme under <span style=\"color: purple;\">Server &gt; Chart<\/span> will be applied as the style of chart. If default options are not selected, then the color matching scheme and style in <span style=\"color: purple;\">Chart Property &#8211; Style &gt; Series<\/span> will be applied in the chart.<\/p>\n<p><img src=\"http:\/\/www.finereport.com\/en\/wp-content\/themes\/fanruan\/images\/17011707.jpg\" alt=\"\" \/><\/p>\n<h3><strong>3. Summary<\/strong><\/h3>\n<p>If you want to modify color and style of a chart, you can separately configure Series Style in the Attribute Table. To configure color and style of all templates, you can add a default style in the Server &gt; Pre-defined Chart Color as the global style. If the color matching scheme of a chart is separately configured, the global style are disabled.<\/p>\n<p><span style=\"color: red;\">Note: default styles of chart do not apply to stock chart, dashboard, map and gis map.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pre-defined chart style refers to the styles predefined at Server side and available for all templates so as to display better data analysis. If a certain pre-defined color style is selected, it will be used as the default style of newly created charts.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[111],"tags":[126,117],"yst_prominent_words":[3345],"_links":{"self":[{"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/posts\/4473"}],"collection":[{"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/comments?post=4473"}],"version-history":[{"count":3,"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/posts\/4473\/revisions"}],"predecessor-version":[{"id":8299,"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/posts\/4473\/revisions\/8299"}],"wp:attachment":[{"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/media?parent=4473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/categories?post=4473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/tags?post=4473"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.finereport.com\/en\/wp-json\/wp\/v2\/yst_prominent_words?post=4473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}