{"action":"created","issue":{"url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/290","labels_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/290/comments","events_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/290/events","html_url":"https://github.com/pablojim/highcharts-ng/issues/290","id":61980473,"number":290,"title":"It does not work for only use Highchart options","user":{"login":"cpsa3","id":4602172,"avatar_url":"https://avatars.githubusercontent.com/u/4602172?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsa3","html_url":"https://github.com/cpsa3","followers_url":"https://api.github.com/users/cpsa3/followers","following_url":"https://api.github.com/users/cpsa3/following{/other_user}","gists_url":"https://api.github.com/users/cpsa3/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsa3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsa3/subscriptions","organizations_url":"https://api.github.com/users/cpsa3/orgs","repos_url":"https://api.github.com/users/cpsa3/repos","events_url":"https://api.github.com/users/cpsa3/events{/privacy}","received_events_url":"https://api.github.com/users/cpsa3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-16T05:56:13Z","updated_at":"2015-03-16T06:48:59Z","closed_at":null,"body":"It does not work for only use Highchart options, the config.options.series will be override by config.series when watch the 'config.series'.\r\n\r\nthe following code does not work ,but it will be fine when move the series out of options.\r\n\r\n``` javascript\r\n $scope.pieConfig = {\r\n\r\n     options: {\r\n         chart: {\r\n             plotBackgroundColor: null,\r\n             plotBorderWidth: null,\r\n             plotShadow: true,\r\n             width: 200,\r\n             height: 200\r\n         },\r\n         title: {\r\n             text: 20 + '<span style=\"font-size:13pt\">%</span><br/><span style=\"font-size:12pt\">Normal Rate</span>',\r\n             //align: 'center',\r\n             verticalAlign: 'middle',\r\n             //useHTML: true,\r\n             y: 0,\r\n             style: {\r\n                 \"color\": \"#333333\",\r\n                 \"fontSize\": \"30pt\",\r\n                 \"fontFamily\": \"helvetica light,Microsoft YaHei\"\r\n             }\r\n         },\r\n         tooltip: {\r\n             pointFormat: '<b>{point.percentage:.1f}%</b>',\r\n             enabled: false\r\n         },\r\n         plotOptions: {\r\n             pie: {\r\n                 allowPointSelect: false,\r\n                 cursor: 'pointer',\r\n                 innerSize: '90%',\r\n                 dataLabels: {\r\n                     enabled: false,\r\n                     color: '#000000',\r\n                     connectorColor: '#000000',\r\n                     format: '{point.percentage:.1f} %'\r\n                 },\r\n                 states: {\r\n                     hover: {\r\n                         enabled: false\r\n                     }\r\n                 }\r\n             }\r\n         },\r\n         colors: [{\r\n             linearGradient: {\r\n                 x1: 0,\r\n                 y1: 1,\r\n                 x2: 0,\r\n                 y2: 0\r\n             }, \r\n             stops: [\r\n                 [0, 'rgb(240, 25, 97)'],\r\n                 [1, 'rgb(229, 94, 62)']\r\n             ]\r\n         }, {\r\n             linearGradient: {\r\n                 x1: 0,\r\n                 y1: 0,\r\n                 x2: 0,\r\n                 y2: 1\r\n             },\r\n             stops: [\r\n                 [0, '#EAEAEA'],\r\n                 [1, '#DCDCDC']\r\n             ]\r\n         }],\r\n         series: [{\r\n             type: 'pie',\r\n             data: [\r\n                 ['normal', 20],\r\n                 ['abnormal', 100 - 20]\r\n             ]\r\n         }]\r\n     },\r\n     //The below properties are watched separately for changes.\r\n\r\n     // series: [{\r\n     //     type: 'pie',\r\n     //     name: 'Browser share',\r\n     //     data: [\r\n     //          ['normal', 20],\r\n     //         ['abnormal', 100 - 20]\r\n     //     ]\r\n     // }],\r\n };\r\n```"},"comment":{"url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/comments/81452402","html_url":"https://github.com/pablojim/highcharts-ng/issues/290#issuecomment-81452402","issue_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/290","id":81452402,"user":{"login":"cpsa3","id":4602172,"avatar_url":"https://avatars.githubusercontent.com/u/4602172?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsa3","html_url":"https://github.com/cpsa3","followers_url":"https://api.github.com/users/cpsa3/followers","following_url":"https://api.github.com/users/cpsa3/following{/other_user}","gists_url":"https://api.github.com/users/cpsa3/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsa3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsa3/subscriptions","organizations_url":"https://api.github.com/users/cpsa3/orgs","repos_url":"https://api.github.com/users/cpsa3/repos","events_url":"https://api.github.com/users/cpsa3/events{/privacy}","received_events_url":"https://api.github.com/users/cpsa3/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T06:48:59Z","updated_at":"2015-03-16T06:48:59Z","body":"This is jsfiddle:\r\ndoes not work: http://jsfiddle.net/cpsa3/cs5zqL1t/1/\r\nwork fine: http://jsfiddle.net/cpsa3/cs5zqL1t/2/\r\n\r\n"}}