Skip to content

New features when creating charts needed for the SurveyGizmo web app #1332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 84 commits into from
May 11, 2018

Conversation

jaek-s
Copy link
Contributor

@jaek-s jaek-s commented Apr 4, 2018

Description

Hello!

I probably should have sent a pull request for my changes much sooner, so I apologize for how massive this pull request has become.

We needed to add some functionality when creating charts with this library in order to fulfill the requirements of our application. We added:

  • Some new chart types
    -- stacked bar charts
    -- percent stacked bar charts
    -- stacked column charts
    -- percent stacked column charts
  • The option to name your charts' series
  • The ability to pass in a list of colors to use in charts
  • The ability to turn on or off what is displayed in charts' data labels
  • The ability to specify axis label positions
  • The ability to name chart axes
  • The ability to specify major tick mark positioning

Thanks for looking this over! Let me know if you need any changes.

  • Jake

Fixes # (issue)

Checklist:

  • I have run composer run-script check --timeout=0 and no errors were reported
  • The new code is covered by unit tests (check build/coverage for coverage report)
  • I have update the documentation to describe the changes

Copy link
Contributor

@troosan troosan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add the new styling options in styles.rst

$xmlWriter->startElement('c:title'); //start c:title
$xmlWriter->startElement('c:tx'); //start c:tx
$xmlWriter->startElement('c:rich'); // start c:rich
$xmlWriter->writeElementBlock('a:bodyPr');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

writeElementBlock expects more attributes, this should be changed to writeElement instead, the same a couple of lines down.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more generally, check the (very few) warnings in scrutinizer

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, if fixed those

@troosan troosan added this to the v0.15.0 milestone Apr 18, 2018
@troosan
Copy link
Contributor

troosan commented Apr 19, 2018

@jaek-s could you please check why when adding a radar graph, the document cannot be opened in word (I have version 2016 for mac) anymore (just run sample_32_chart.php)

@troosan troosan dismissed their stale review April 19, 2018 21:00

please fix the radar generation instead

@troosan troosan merged commit 65b0f06 into PHPOffice:develop May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants