{"action":"created","comment":{"url":"https://api.github.com/repos/telerik/xaml-docs/pulls/comments/100525981","pull_request_review_id":21236631,"id":100525981,"diff_hunk":"@@ -0,0 +1,117 @@\n+---\n+title: Palettes\n+page_title: Palettes\n+description: Palettes\n+slug: radchartview3d-features-palettes\n+tags: 3d,chartview,cartesianchart3d,palette,materialgroup,material,color,brush\n+published: True\n+position: 1\n+---\n+\n+# Palettes\n+\n+__RadChartView3D__ has a built-in automatic coloring mechanism. There are predefined palettes containing 3D materials used to define the textures of the chart data points.\n+\n+#### __Figure 1: List with the predefined chart palettes__\n+![](images/radchartview-3d-features-palettes-0.png)\n+\n+A palette can be set via the __Palette__ property of the chart. The property is of type __System.Windows.Media.Media3D.MaterialCollection__ so you can easily create a [custom palette](#create-a-custom-palette).\n+\n+#### __[XAML] Example 1: Setting a palette in XAML__\n+{{region xaml-radchartview3d-features-palettes-0}}\n+\t<telerik:RadCartesianChart3D Palette=\"Windows8\" />\n+{{endregion}}\n+\n+You can access the predefined palettes in code using the __Chart3DPalettes__ static class.\n+\n+#### __[C#] Example 2: Setting a palette in code__\n+{{region cs-radchartview3d-features-palettes-1}}\n+\tchart.Palette = Chart3DPalettes.Windows8;\n+{{endregion}}\n+\n+Each series added in the chart will use different entry from the MaterialCollection (the palette). If you have a single series only the first material from the collection will be used.\n+\n+#### __Figure 2: Chart with 3 BarSeries3D colored using the Windows8 palette__\n+![](images/radchartview-3d-features-palettes-1.png)\n+\n+> The __DefaultVisualMaterial__ property of the series has a higher precedence than the palette materials. \n+\n+## Create a custom palette\n+\n+The chart allows you to create a custom palette by defining a __MaterialCollection__ and populate it with __System.Windows.Media.Media3D.Material__ objects. The new collection can be assinged to the __Palette__ property of the chart.","path":"controls/radchartview3d/features/palettes.md","position":41,"original_position":41,"commit_id":"dc0851e6274c2e697e8cacb130d6d722ced34d35","original_commit_id":"dc0851e6274c2e697e8cacb130d6d722ced34d35","user":{"login":"TanyaDimitrova","id":5954950,"avatar_url":"https://avatars.githubusercontent.com/u/5954950?v=3","gravatar_id":"","url":"https://api.github.com/users/TanyaDimitrova","html_url":"https://github.com/TanyaDimitrova","followers_url":"https://api.github.com/users/TanyaDimitrova/followers","following_url":"https://api.github.com/users/TanyaDimitrova/following{/other_user}","gists_url":"https://api.github.com/users/TanyaDimitrova/gists{/gist_id}","starred_url":"https://api.github.com/users/TanyaDimitrova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanyaDimitrova/subscriptions","organizations_url":"https://api.github.com/users/TanyaDimitrova/orgs","repos_url":"https://api.github.com/users/TanyaDimitrova/repos","events_url":"https://api.github.com/users/TanyaDimitrova/events{/privacy}","received_events_url":"https://api.github.com/users/TanyaDimitrova/received_events","type":"User","site_admin":false},"body":"...by defining a __MaterialCollection__ and populating it with...","created_at":"2017-02-10T12:32:38Z","updated_at":"2017-02-10T12:33:35Z","html_url":"https://github.com/telerik/xaml-docs/pull/885#discussion_r100525981","pull_request_url":"https://api.github.com/repos/telerik/xaml-docs/pulls/885","_links":{"self":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/comments/100525981"},"html":{"href":"https://github.com/telerik/xaml-docs/pull/885#discussion_r100525981"},"pull_request":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/885"}}},"pull_request":{"url":"https://api.github.com/repos/telerik/xaml-docs/pulls/885","id":101880306,"html_url":"https://github.com/telerik/xaml-docs/pull/885","diff_url":"https://github.com/telerik/xaml-docs/pull/885.diff","patch_url":"https://github.com/telerik/xaml-docs/pull/885.patch","issue_url":"https://api.github.com/repos/telerik/xaml-docs/issues/885","number":885,"state":"open","locked":false,"title":"RadChartView3D: New article about palettes added","user":{"login":"martinivanoff","id":8738379,"avatar_url":"https://avatars.githubusercontent.com/u/8738379?v=3","gravatar_id":"","url":"https://api.github.com/users/martinivanoff","html_url":"https://github.com/martinivanoff","followers_url":"https://api.github.com/users/martinivanoff/followers","following_url":"https://api.github.com/users/martinivanoff/following{/other_user}","gists_url":"https://api.github.com/users/martinivanoff/gists{/gist_id}","starred_url":"https://api.github.com/users/martinivanoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinivanoff/subscriptions","organizations_url":"https://api.github.com/users/martinivanoff/orgs","repos_url":"https://api.github.com/users/martinivanoff/repos","events_url":"https://api.github.com/users/martinivanoff/events{/privacy}","received_events_url":"https://api.github.com/users/martinivanoff/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-17T15:01:45Z","updated_at":"2017-02-10T12:33:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b1ea29020c5fde4f3a0b60bd82031b0c16c1783","assignee":{"login":"TanyaDimitrova","id":5954950,"avatar_url":"https://avatars.githubusercontent.com/u/5954950?v=3","gravatar_id":"","url":"https://api.github.com/users/TanyaDimitrova","html_url":"https://github.com/TanyaDimitrova","followers_url":"https://api.github.com/users/TanyaDimitrova/followers","following_url":"https://api.github.com/users/TanyaDimitrova/following{/other_user}","gists_url":"https://api.github.com/users/TanyaDimitrova/gists{/gist_id}","starred_url":"https://api.github.com/users/TanyaDimitrova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanyaDimitrova/subscriptions","organizations_url":"https://api.github.com/users/TanyaDimitrova/orgs","repos_url":"https://api.github.com/users/TanyaDimitrova/repos","events_url":"https://api.github.com/users/TanyaDimitrova/events{/privacy}","received_events_url":"https://api.github.com/users/TanyaDimitrova/received_events","type":"User","site_admin":false},"assignees":[{"login":"TanyaDimitrova","id":5954950,"avatar_url":"https://avatars.githubusercontent.com/u/5954950?v=3","gravatar_id":"","url":"https://api.github.com/users/TanyaDimitrova","html_url":"https://github.com/TanyaDimitrova","followers_url":"https://api.github.com/users/TanyaDimitrova/followers","following_url":"https://api.github.com/users/TanyaDimitrova/following{/other_user}","gists_url":"https://api.github.com/users/TanyaDimitrova/gists{/gist_id}","starred_url":"https://api.github.com/users/TanyaDimitrova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanyaDimitrova/subscriptions","organizations_url":"https://api.github.com/users/TanyaDimitrova/orgs","repos_url":"https://api.github.com/users/TanyaDimitrova/repos","events_url":"https://api.github.com/users/TanyaDimitrova/events{/privacy}","received_events_url":"https://api.github.com/users/TanyaDimitrova/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/telerik/xaml-docs/pulls/885/commits","review_comments_url":"https://api.github.com/repos/telerik/xaml-docs/pulls/885/comments","review_comment_url":"https://api.github.com/repos/telerik/xaml-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/telerik/xaml-docs/issues/885/comments","statuses_url":"https://api.github.com/repos/telerik/xaml-docs/statuses/dc0851e6274c2e697e8cacb130d6d722ced34d35","head":{"label":"telerik:ChartView3D_Palettes","ref":"ChartView3D_Palettes","sha":"dc0851e6274c2e697e8cacb130d6d722ced34d35","user":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"repo":{"id":23070893,"name":"xaml-docs","full_name":"telerik/xaml-docs","owner":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telerik/xaml-docs","description":"Public Documentation for Telerik UI for WPF and Silverlight","fork":false,"url":"https://api.github.com/repos/telerik/xaml-docs","forks_url":"https://api.github.com/repos/telerik/xaml-docs/forks","keys_url":"https://api.github.com/repos/telerik/xaml-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telerik/xaml-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telerik/xaml-docs/teams","hooks_url":"https://api.github.com/repos/telerik/xaml-docs/hooks","issue_events_url":"https://api.github.com/repos/telerik/xaml-docs/issues/events{/number}","events_url":"https://api.github.com/repos/telerik/xaml-docs/events","assignees_url":"https://api.github.com/repos/telerik/xaml-docs/assignees{/user}","branches_url":"https://api.github.com/repos/telerik/xaml-docs/branches{/branch}","tags_url":"https://api.github.com/repos/telerik/xaml-docs/tags","blobs_url":"https://api.github.com/repos/telerik/xaml-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telerik/xaml-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telerik/xaml-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/telerik/xaml-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telerik/xaml-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/telerik/xaml-docs/languages","stargazers_url":"https://api.github.com/repos/telerik/xaml-docs/stargazers","contributors_url":"https://api.github.com/repos/telerik/xaml-docs/contributors","subscribers_url":"https://api.github.com/repos/telerik/xaml-docs/subscribers","subscription_url":"https://api.github.com/repos/telerik/xaml-docs/subscription","commits_url":"https://api.github.com/repos/telerik/xaml-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/telerik/xaml-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/telerik/xaml-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/telerik/xaml-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/telerik/xaml-docs/contents/{+path}","compare_url":"https://api.github.com/repos/telerik/xaml-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telerik/xaml-docs/merges","archive_url":"https://api.github.com/repos/telerik/xaml-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telerik/xaml-docs/downloads","issues_url":"https://api.github.com/repos/telerik/xaml-docs/issues{/number}","pulls_url":"https://api.github.com/repos/telerik/xaml-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/telerik/xaml-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/telerik/xaml-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telerik/xaml-docs/labels{/name}","releases_url":"https://api.github.com/repos/telerik/xaml-docs/releases{/id}","deployments_url":"https://api.github.com/repos/telerik/xaml-docs/deployments","created_at":"2014-08-18T12:46:34Z","updated_at":"2017-01-12T13:13:55Z","pushed_at":"2017-02-09T16:35:57Z","git_url":"git://github.com/telerik/xaml-docs.git","ssh_url":"git@github.com:telerik/xaml-docs.git","clone_url":"https://github.com/telerik/xaml-docs.git","svn_url":"https://github.com/telerik/xaml-docs","homepage":"http://docs.telerik.com/devtools/wpf/","size":143142,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":116,"mirror_url":null,"open_issues_count":8,"forks":116,"open_issues":8,"watchers":15,"default_branch":"master"}},"base":{"label":"telerik:master","ref":"master","sha":"0bd9c650a45796f5cf4cd5b966e85d4de47e7db2","user":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"repo":{"id":23070893,"name":"xaml-docs","full_name":"telerik/xaml-docs","owner":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telerik/xaml-docs","description":"Public Documentation for Telerik UI for WPF and Silverlight","fork":false,"url":"https://api.github.com/repos/telerik/xaml-docs","forks_url":"https://api.github.com/repos/telerik/xaml-docs/forks","keys_url":"https://api.github.com/repos/telerik/xaml-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telerik/xaml-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telerik/xaml-docs/teams","hooks_url":"https://api.github.com/repos/telerik/xaml-docs/hooks","issue_events_url":"https://api.github.com/repos/telerik/xaml-docs/issues/events{/number}","events_url":"https://api.github.com/repos/telerik/xaml-docs/events","assignees_url":"https://api.github.com/repos/telerik/xaml-docs/assignees{/user}","branches_url":"https://api.github.com/repos/telerik/xaml-docs/branches{/branch}","tags_url":"https://api.github.com/repos/telerik/xaml-docs/tags","blobs_url":"https://api.github.com/repos/telerik/xaml-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telerik/xaml-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telerik/xaml-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/telerik/xaml-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telerik/xaml-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/telerik/xaml-docs/languages","stargazers_url":"https://api.github.com/repos/telerik/xaml-docs/stargazers","contributors_url":"https://api.github.com/repos/telerik/xaml-docs/contributors","subscribers_url":"https://api.github.com/repos/telerik/xaml-docs/subscribers","subscription_url":"https://api.github.com/repos/telerik/xaml-docs/subscription","commits_url":"https://api.github.com/repos/telerik/xaml-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/telerik/xaml-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/telerik/xaml-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/telerik/xaml-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/telerik/xaml-docs/contents/{+path}","compare_url":"https://api.github.com/repos/telerik/xaml-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telerik/xaml-docs/merges","archive_url":"https://api.github.com/repos/telerik/xaml-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telerik/xaml-docs/downloads","issues_url":"https://api.github.com/repos/telerik/xaml-docs/issues{/number}","pulls_url":"https://api.github.com/repos/telerik/xaml-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/telerik/xaml-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/telerik/xaml-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telerik/xaml-docs/labels{/name}","releases_url":"https://api.github.com/repos/telerik/xaml-docs/releases{/id}","deployments_url":"https://api.github.com/repos/telerik/xaml-docs/deployments","created_at":"2014-08-18T12:46:34Z","updated_at":"2017-01-12T13:13:55Z","pushed_at":"2017-02-09T16:35:57Z","git_url":"git://github.com/telerik/xaml-docs.git","ssh_url":"git@github.com:telerik/xaml-docs.git","clone_url":"https://github.com/telerik/xaml-docs.git","svn_url":"https://github.com/telerik/xaml-docs","homepage":"http://docs.telerik.com/devtools/wpf/","size":143142,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":116,"mirror_url":null,"open_issues_count":8,"forks":116,"open_issues":8,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/885"},"html":{"href":"https://github.com/telerik/xaml-docs/pull/885"},"issue":{"href":"https://api.github.com/repos/telerik/xaml-docs/issues/885"},"comments":{"href":"https://api.github.com/repos/telerik/xaml-docs/issues/885/comments"},"review_comments":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/885/comments"},"review_comment":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/885/commits"},"statuses":{"href":"https://api.github.com/repos/telerik/xaml-docs/statuses/dc0851e6274c2e697e8cacb130d6d722ced34d35"}}}}
{"actor":{"display_login":"TanyaDimitrova"}}