Unable to rotate the labels on x-axis in DevExtreme
We are build a SPFx webpart in SharePoint 2016. We are using DevExtreme for displaying bar charts with React. The labels on x-axis are a bit long so not all the labels are displayed. When we try to rotate the labels on x-axis using the below code it throws an error.
<ArgumentAxis>
<Label overlappingBehavior={'rotate'} rotationAngle={90} ></Label>
</ArgumentAxis>
The error in browser console is as below.
Uncaught (in promise) Error: Minified React error #130; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=130&args=undefined&args=%20Check%20the%20render%20method%20of%20%60ArgumentAxis%60. for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at r (sp-webpart-workbench-assembly_en-us.js:188)
at p.i [as _instantiateReactComponent] (sp-webpart-workbench-assembly_en-us.js:174)
at performInitialMount (sp-webpart-workbench-assembly_en-us.js:174)
at p.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at h.mountChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._createInitialChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at performInitialMount (sp-webpart-workbench-assembly_en-us.js:174)
sp-webpart-workbench-assembly_en-us.js:174 Uncaught TypeError: Cannot read property '__reactInternalInstance$9s1g0il1o7' of null
at Object.u [as getClosestInstanceFromNode] (sp-webpart-workbench-assembly_en-us.js:174)
at r (sp-webpart-workbench-assembly_en-us.js:174)
at i (sp-webpart-workbench-assembly_en-us.js:174)
at r.perform (sp-webpart-workbench-assembly_en-us.js:174)
at Object.batchedUpdates (sp-webpart-workbench-assembly_en-us.js:174)
at Object.i [as batchedUpdates] (sp-webpart-workbench-assembly_en-us.js:174)
at dispatchEvent (sp-webpart-workbench-assembly_en-us.js:174)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96555 Array(4)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96562 Array(18)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96548 Array(36)
sp-webpart-workbench-assembly_en-us.js:174 Uncaught (in promise) TypeError: Cannot read property '_currentElement' of null
at p._updateRenderedComponent (sp-webpart-workbench-assembly_en-us.js:174)
at p._performComponentUpdate (sp-webpart-workbench-assembly_en-us.js:174)
at p.updateComponent (sp-webpart-workbench-assembly_en-us.js:174)
at p.receiveComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.receiveComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._reconcilerUpdateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h.updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._updateDOMChildren (sp-webpart-workbench-assembly_en-us.js:174)
/_layouts/15/WsaUpload.ashx:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
2sp-webpart-workbench-assembly_en-us.js?version=1:174 Uncaught (in promise) TypeError: Cannot read property '_currentElement' of null
at p._updateRenderedComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p._performComponentUpdate (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p.updateComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p.receiveComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at Object.receiveComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at Object.updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._reconcilerUpdateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h.updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._updateDOMChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
The link in the error message shows the below description.
Element type is invalid: expected a string (for built-in components)
or a class/function (for composite components) but got: undefined.
Check the render method ofArgumentAxis
What am I doing wrong here?
reactjs devextreme spfx sharepoint-2016
add a comment |
We are build a SPFx webpart in SharePoint 2016. We are using DevExtreme for displaying bar charts with React. The labels on x-axis are a bit long so not all the labels are displayed. When we try to rotate the labels on x-axis using the below code it throws an error.
<ArgumentAxis>
<Label overlappingBehavior={'rotate'} rotationAngle={90} ></Label>
</ArgumentAxis>
The error in browser console is as below.
Uncaught (in promise) Error: Minified React error #130; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=130&args=undefined&args=%20Check%20the%20render%20method%20of%20%60ArgumentAxis%60. for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at r (sp-webpart-workbench-assembly_en-us.js:188)
at p.i [as _instantiateReactComponent] (sp-webpart-workbench-assembly_en-us.js:174)
at performInitialMount (sp-webpart-workbench-assembly_en-us.js:174)
at p.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at h.mountChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._createInitialChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at performInitialMount (sp-webpart-workbench-assembly_en-us.js:174)
sp-webpart-workbench-assembly_en-us.js:174 Uncaught TypeError: Cannot read property '__reactInternalInstance$9s1g0il1o7' of null
at Object.u [as getClosestInstanceFromNode] (sp-webpart-workbench-assembly_en-us.js:174)
at r (sp-webpart-workbench-assembly_en-us.js:174)
at i (sp-webpart-workbench-assembly_en-us.js:174)
at r.perform (sp-webpart-workbench-assembly_en-us.js:174)
at Object.batchedUpdates (sp-webpart-workbench-assembly_en-us.js:174)
at Object.i [as batchedUpdates] (sp-webpart-workbench-assembly_en-us.js:174)
at dispatchEvent (sp-webpart-workbench-assembly_en-us.js:174)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96555 Array(4)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96562 Array(18)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96548 Array(36)
sp-webpart-workbench-assembly_en-us.js:174 Uncaught (in promise) TypeError: Cannot read property '_currentElement' of null
at p._updateRenderedComponent (sp-webpart-workbench-assembly_en-us.js:174)
at p._performComponentUpdate (sp-webpart-workbench-assembly_en-us.js:174)
at p.updateComponent (sp-webpart-workbench-assembly_en-us.js:174)
at p.receiveComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.receiveComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._reconcilerUpdateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h.updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._updateDOMChildren (sp-webpart-workbench-assembly_en-us.js:174)
/_layouts/15/WsaUpload.ashx:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
2sp-webpart-workbench-assembly_en-us.js?version=1:174 Uncaught (in promise) TypeError: Cannot read property '_currentElement' of null
at p._updateRenderedComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p._performComponentUpdate (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p.updateComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p.receiveComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at Object.receiveComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at Object.updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._reconcilerUpdateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h.updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._updateDOMChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
The link in the error message shows the below description.
Element type is invalid: expected a string (for built-in components)
or a class/function (for composite components) but got: undefined.
Check the render method ofArgumentAxis
What am I doing wrong here?
reactjs devextreme spfx sharepoint-2016
add a comment |
We are build a SPFx webpart in SharePoint 2016. We are using DevExtreme for displaying bar charts with React. The labels on x-axis are a bit long so not all the labels are displayed. When we try to rotate the labels on x-axis using the below code it throws an error.
<ArgumentAxis>
<Label overlappingBehavior={'rotate'} rotationAngle={90} ></Label>
</ArgumentAxis>
The error in browser console is as below.
Uncaught (in promise) Error: Minified React error #130; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=130&args=undefined&args=%20Check%20the%20render%20method%20of%20%60ArgumentAxis%60. for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at r (sp-webpart-workbench-assembly_en-us.js:188)
at p.i [as _instantiateReactComponent] (sp-webpart-workbench-assembly_en-us.js:174)
at performInitialMount (sp-webpart-workbench-assembly_en-us.js:174)
at p.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at h.mountChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._createInitialChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at performInitialMount (sp-webpart-workbench-assembly_en-us.js:174)
sp-webpart-workbench-assembly_en-us.js:174 Uncaught TypeError: Cannot read property '__reactInternalInstance$9s1g0il1o7' of null
at Object.u [as getClosestInstanceFromNode] (sp-webpart-workbench-assembly_en-us.js:174)
at r (sp-webpart-workbench-assembly_en-us.js:174)
at i (sp-webpart-workbench-assembly_en-us.js:174)
at r.perform (sp-webpart-workbench-assembly_en-us.js:174)
at Object.batchedUpdates (sp-webpart-workbench-assembly_en-us.js:174)
at Object.i [as batchedUpdates] (sp-webpart-workbench-assembly_en-us.js:174)
at dispatchEvent (sp-webpart-workbench-assembly_en-us.js:174)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96555 Array(4)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96562 Array(18)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96548 Array(36)
sp-webpart-workbench-assembly_en-us.js:174 Uncaught (in promise) TypeError: Cannot read property '_currentElement' of null
at p._updateRenderedComponent (sp-webpart-workbench-assembly_en-us.js:174)
at p._performComponentUpdate (sp-webpart-workbench-assembly_en-us.js:174)
at p.updateComponent (sp-webpart-workbench-assembly_en-us.js:174)
at p.receiveComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.receiveComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._reconcilerUpdateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h.updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._updateDOMChildren (sp-webpart-workbench-assembly_en-us.js:174)
/_layouts/15/WsaUpload.ashx:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
2sp-webpart-workbench-assembly_en-us.js?version=1:174 Uncaught (in promise) TypeError: Cannot read property '_currentElement' of null
at p._updateRenderedComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p._performComponentUpdate (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p.updateComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p.receiveComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at Object.receiveComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at Object.updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._reconcilerUpdateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h.updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._updateDOMChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
The link in the error message shows the below description.
Element type is invalid: expected a string (for built-in components)
or a class/function (for composite components) but got: undefined.
Check the render method ofArgumentAxis
What am I doing wrong here?
reactjs devextreme spfx sharepoint-2016
We are build a SPFx webpart in SharePoint 2016. We are using DevExtreme for displaying bar charts with React. The labels on x-axis are a bit long so not all the labels are displayed. When we try to rotate the labels on x-axis using the below code it throws an error.
<ArgumentAxis>
<Label overlappingBehavior={'rotate'} rotationAngle={90} ></Label>
</ArgumentAxis>
The error in browser console is as below.
Uncaught (in promise) Error: Minified React error #130; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=130&args=undefined&args=%20Check%20the%20render%20method%20of%20%60ArgumentAxis%60. for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at r (sp-webpart-workbench-assembly_en-us.js:188)
at p.i [as _instantiateReactComponent] (sp-webpart-workbench-assembly_en-us.js:174)
at performInitialMount (sp-webpart-workbench-assembly_en-us.js:174)
at p.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at h.mountChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._createInitialChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.mountComponent (sp-webpart-workbench-assembly_en-us.js:174)
at performInitialMount (sp-webpart-workbench-assembly_en-us.js:174)
sp-webpart-workbench-assembly_en-us.js:174 Uncaught TypeError: Cannot read property '__reactInternalInstance$9s1g0il1o7' of null
at Object.u [as getClosestInstanceFromNode] (sp-webpart-workbench-assembly_en-us.js:174)
at r (sp-webpart-workbench-assembly_en-us.js:174)
at i (sp-webpart-workbench-assembly_en-us.js:174)
at r.perform (sp-webpart-workbench-assembly_en-us.js:174)
at Object.batchedUpdates (sp-webpart-workbench-assembly_en-us.js:174)
at Object.i [as batchedUpdates] (sp-webpart-workbench-assembly_en-us.js:174)
at dispatchEvent (sp-webpart-workbench-assembly_en-us.js:174)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96555 Array(4)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96562 Array(18)
localhost:4321/dist/pfizer-sp-tap-web-part.js:96548 Array(36)
sp-webpart-workbench-assembly_en-us.js:174 Uncaught (in promise) TypeError: Cannot read property '_currentElement' of null
at p._updateRenderedComponent (sp-webpart-workbench-assembly_en-us.js:174)
at p._performComponentUpdate (sp-webpart-workbench-assembly_en-us.js:174)
at p.updateComponent (sp-webpart-workbench-assembly_en-us.js:174)
at p.receiveComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.receiveComponent (sp-webpart-workbench-assembly_en-us.js:174)
at Object.updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._reconcilerUpdateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h.updateChildren (sp-webpart-workbench-assembly_en-us.js:174)
at h._updateDOMChildren (sp-webpart-workbench-assembly_en-us.js:174)
/_layouts/15/WsaUpload.ashx:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
2sp-webpart-workbench-assembly_en-us.js?version=1:174 Uncaught (in promise) TypeError: Cannot read property '_currentElement' of null
at p._updateRenderedComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p._performComponentUpdate (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p.updateComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at p.receiveComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at Object.receiveComponent (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at Object.updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._reconcilerUpdateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h.updateChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
at h._updateDOMChildren (sp-webpart-workbench-assembly_en-us.js?version=1:174)
The link in the error message shows the below description.
Element type is invalid: expected a string (for built-in components)
or a class/function (for composite components) but got: undefined.
Check the render method ofArgumentAxis
What am I doing wrong here?
reactjs devextreme spfx sharepoint-2016
reactjs devextreme spfx sharepoint-2016
asked Nov 19 '18 at 13:32
Naveen
4,03783273
4,03783273
add a comment |
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53375747%2funable-to-rotate-the-labels-on-x-axis-in-devextreme%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53375747%2funable-to-rotate-the-labels-on-x-axis-in-devextreme%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown