Horizontal bar graph using ng2-charts in angular2 The 2019 Stack Overflow Developer Survey Results Are InAngular2 ng2-chart customizations?Draw vertical line inside Angular2 component using ng2-charts?ng2-charts customization of 'bar' typeng2-charts customize data and whole html content of tooltip displayed when hovering on bar chartng2-charts bar charts displaying values at the end of the barloading graph data from json object in angular2 using ng2-chartsng2-charts bar graph not displaying data/graph labelsGet the value of bar in ng2-chart bar graph after clicking on barng2-chart text label wrap and graph widthDraw vertical lines on charts using ng2-charts + chart.js
How to obtain Confidence Intervals for a LASSO regression?
How to save as into a customized destination on macOS?
Geography at the pixel level
Origin of "cooter" meaning "vagina"
What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?
Shouldn't "much" here be used instead of "more"?
One word riddle: Vowel in the middle
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
What is the meaning of Triage in Cybersec world?
Resizing object distorts it (Illustrator CC 2018)
Is there any way to tell whether the shot is going to hit you or not?
Aging parents with no investments
What does "fetching by region is not available for SAM files" means?
Can we generate random numbers using irrational numbers like π and e?
Why isn't airport relocation done gradually?
What is the closest word meaning "respect for time / mindful"
How to deal with fear of taking dependencies
Why was M87 targetted for the Event Horizon Telescope instead of Sagittarius A*?
Apparent duplicates between Haynes service instructions and MOT
How to type this arrow in math mode?
Is flight data recorder erased after every flight?
What did it mean to "align" a radio?
How can I autofill dates in Excel excluding Sunday?
Time travel alters history but people keep saying nothing's changed
Horizontal bar graph using ng2-charts in angular2
The 2019 Stack Overflow Developer Survey Results Are InAngular2 ng2-chart customizations?Draw vertical line inside Angular2 component using ng2-charts?ng2-charts customization of 'bar' typeng2-charts customize data and whole html content of tooltip displayed when hovering on bar chartng2-charts bar charts displaying values at the end of the barloading graph data from json object in angular2 using ng2-chartsng2-charts bar graph not displaying data/graph labelsGet the value of bar in ng2-chart bar graph after clicking on barng2-chart text label wrap and graph widthDraw vertical lines on charts using ng2-charts + chart.js
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am new into using ng2-charts and i wanted to know is it possible to have a horizontal bar graph? I only see a vertical bar graph but i am not sure if that could be altered to include horizontal bar graph. How far can i customize a bar graph in ng2-charts?
add a comment |
I am new into using ng2-charts and i wanted to know is it possible to have a horizontal bar graph? I only see a vertical bar graph but i am not sure if that could be altered to include horizontal bar graph. How far can i customize a bar graph in ng2-charts?
add a comment |
I am new into using ng2-charts and i wanted to know is it possible to have a horizontal bar graph? I only see a vertical bar graph but i am not sure if that could be altered to include horizontal bar graph. How far can i customize a bar graph in ng2-charts?
I am new into using ng2-charts and i wanted to know is it possible to have a horizontal bar graph? I only see a vertical bar graph but i am not sure if that could be altered to include horizontal bar graph. How far can i customize a bar graph in ng2-charts?
asked Apr 27 '17 at 6:44
bluePearlbluePearl
3952524
3952524
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
For anyone who was wondering about the same thing - i looked into the documentation for chart.js and was able to find just changing the bar chart type to horizontalBar works nicely. public barChartType: string = 'horizontalBar';
add a comment |
Bar charts can be used by adjusting the "chartType" option within your baseChart canvas.
<canvas baseChart
[datasets]="data"
[labels]="label"
chartType="horizontalBar">
add a comment |
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%2f43650416%2fhorizontal-bar-graph-using-ng2-charts-in-angular2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
For anyone who was wondering about the same thing - i looked into the documentation for chart.js and was able to find just changing the bar chart type to horizontalBar works nicely. public barChartType: string = 'horizontalBar';
add a comment |
For anyone who was wondering about the same thing - i looked into the documentation for chart.js and was able to find just changing the bar chart type to horizontalBar works nicely. public barChartType: string = 'horizontalBar';
add a comment |
For anyone who was wondering about the same thing - i looked into the documentation for chart.js and was able to find just changing the bar chart type to horizontalBar works nicely. public barChartType: string = 'horizontalBar';
For anyone who was wondering about the same thing - i looked into the documentation for chart.js and was able to find just changing the bar chart type to horizontalBar works nicely. public barChartType: string = 'horizontalBar';
answered Apr 27 '17 at 7:05
bluePearlbluePearl
3952524
3952524
add a comment |
add a comment |
Bar charts can be used by adjusting the "chartType" option within your baseChart canvas.
<canvas baseChart
[datasets]="data"
[labels]="label"
chartType="horizontalBar">
add a comment |
Bar charts can be used by adjusting the "chartType" option within your baseChart canvas.
<canvas baseChart
[datasets]="data"
[labels]="label"
chartType="horizontalBar">
add a comment |
Bar charts can be used by adjusting the "chartType" option within your baseChart canvas.
<canvas baseChart
[datasets]="data"
[labels]="label"
chartType="horizontalBar">
Bar charts can be used by adjusting the "chartType" option within your baseChart canvas.
<canvas baseChart
[datasets]="data"
[labels]="label"
chartType="horizontalBar">
answered Mar 8 at 9:22
Sabin BogatiSabin Bogati
465
465
add a comment |
add a comment |
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.
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%2f43650416%2fhorizontal-bar-graph-using-ng2-charts-in-angular2%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