{"action":"created","issue":{"url":"https://api.github.com/repos/scanny/python-pptx/issues/245","repository_url":"https://api.github.com/repos/scanny/python-pptx","labels_url":"https://api.github.com/repos/scanny/python-pptx/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/scanny/python-pptx/issues/245/comments","events_url":"https://api.github.com/repos/scanny/python-pptx/issues/245/events","html_url":"https://github.com/scanny/python-pptx/issues/245","id":192082392,"number":245,"title":"AttributeError: 'Chart' object has no attribute 'chart_title'","user":{"login":"ngnikhilgoyal","id":6945336,"avatar_url":"https://avatars.githubusercontent.com/u/6945336?v=3","gravatar_id":"","url":"https://api.github.com/users/ngnikhilgoyal","html_url":"https://github.com/ngnikhilgoyal","followers_url":"https://api.github.com/users/ngnikhilgoyal/followers","following_url":"https://api.github.com/users/ngnikhilgoyal/following{/other_user}","gists_url":"https://api.github.com/users/ngnikhilgoyal/gists{/gist_id}","starred_url":"https://api.github.com/users/ngnikhilgoyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngnikhilgoyal/subscriptions","organizations_url":"https://api.github.com/users/ngnikhilgoyal/orgs","repos_url":"https://api.github.com/users/ngnikhilgoyal/repos","events_url":"https://api.github.com/users/ngnikhilgoyal/events{/privacy}","received_events_url":"https://api.github.com/users/ngnikhilgoyal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-28T18:32:37Z","updated_at":"2016-11-28T20:25:46Z","closed_at":null,"body":"I am trying to add a title to my chart. On running below , I don't get any error but no titles appear on my chart. \r\n\r\nMy specs are: python-pptx version = 0.6.1 , python 2.7, mac osx, powerpoint for mac 15.26\r\n\r\ndf = pd.read_excel(\"/Users/vagabond/Documents/python_pptx_3/Bar_Charts.xlsx\", sheetname=None)\r\nf = open('/Users/vagabond/Documents/python_pptx_3/Presentation1.pptx')\r\nprs = ppt.Presentation(f)\r\n\r\nfor sheetname, data in df.iteritems():\r\n\r\n    slide_layout = prs.slide_layouts[9]\r\n    slide = prs.slides.add_slide(slide_layout)\r\n\r\n    chart_data = ppt.chart.data.XyChartData()\r\n\r\n    series_1 = chart_data.add_series('Series 1')\r\n\r\n    ## iterate through rows of the data frame for desired columns and add data points\r\n    for index, row in data.iterrows():\r\n        series_1.add_data_point(row['Share_of_apples'], row['Share_of_oranges'])\r\n\r\n    ## define co-ordinates on the slide\r\n    x, y, cx, cy = Inches(1), Inches(3), Inches(7), Inches(4)\r\n\r\n    chart = slide.shapes.add_chart(\r\n    XL_CHART_TYPE.XY_SCATTER, x, y, cx, cy, chart_data).chart\r\n\r\n    chart.has_title = True\r\n    chart.title = sheetname\r\n    \r\n    prs.save('scatter_charts.pptx')\r\n\r\n\r\nWhen I try this : chart.has_title , I get an error: \r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-36-24ee55a2a694> in <module>()\r\n----> 1 chart.has_title\r\n\r\nAttributeError: 'Chart' object has no attribute 'has_title'\r\n\r\nposted on SO as question also : http://stackoverflow.com/questions/40848830/chart-title-for-chart-using-python-pptx"},"comment":{"url":"https://api.github.com/repos/scanny/python-pptx/issues/comments/263384024","html_url":"https://github.com/scanny/python-pptx/issues/245#issuecomment-263384024","issue_url":"https://api.github.com/repos/scanny/python-pptx/issues/245","id":263384024,"user":{"login":"scanny","id":2062718,"avatar_url":"https://avatars.githubusercontent.com/u/2062718?v=3","gravatar_id":"","url":"https://api.github.com/users/scanny","html_url":"https://github.com/scanny","followers_url":"https://api.github.com/users/scanny/followers","following_url":"https://api.github.com/users/scanny/following{/other_user}","gists_url":"https://api.github.com/users/scanny/gists{/gist_id}","starred_url":"https://api.github.com/users/scanny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scanny/subscriptions","organizations_url":"https://api.github.com/users/scanny/orgs","repos_url":"https://api.github.com/users/scanny/repos","events_url":"https://api.github.com/users/scanny/events{/privacy}","received_events_url":"https://api.github.com/users/scanny/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T20:25:46Z","updated_at":"2016-11-28T20:25:46Z","body":"I answered on SO. Short version is that `Chart.title` is not in the API yet."}}
{"actor":{"display_login":"scanny"}}