score:0
Accepted answer
i guess i answer my own question. since i am using ngx-charts. i didn't notice that it had a [results] option which is basically what @erevald was suggesting. therefore the data option was already built in. so the answer was basically to add another html tag.
<ngx-charts-bar-vertical-stacked
[results]="data2"
</ngx-charts-bar-vertical-stacked>
after that, modify the ts file , with ngx-chart suggestions and that's it.
Source: stackoverflow.com
Related Query
- Two data sets one component , ngx-charts , angular 2
- D3 two donut charts on top of one another, different data sets. Javascript/HTML
- One canvas, two sets of data
- Two bar charts from same data object using D3.js
- Create map that combines data from two files with common column - but data doesn't match one to one
- How do I fit these two charts onto one SVG
- c3 (v4) scatter plot with two sets of data
- Angular 1.5: How to pass async data to child component
- Inserting two separate charts on one page D3.js v4
- Combining two charts in one div - d3 / css
- Angular 6 when component is routed to the d3/event-drops data points don't display in Safari
- Print two area charts in one diagram without stacking them above each other?
- How to Create/Show Multiple Iterations of Charts with the same data in One Area with Buttons using D3.js
- Styles in component for D3.js do not show in angular 2
- D3.js Plotting Multiple Data Sets from Separate Files
- Can d3.js draw two scatterplots on the same graph using data from the same source?
- dc.js add class to data points in multiple charts based on criteria from first chart
- How can I connect two parent node into one child node and how to make a tooltip for each node in the tree pragmatically? in D3 js (SVG)
- Data for sunburst charts with d3.hierarchy using D3js v4
- D3: Combine two colour scales into one
- Why does my angular component ignore my css file?
- Is there a working implemenation to fit multiple d3 charts like line, bar, etc on one page?
- Merging arrays that hold CSV data into one object array
- How to render a directive only after data is loaded from tsv in angular js
- Mouseover event on two charts at the same time d3.js
- Two lined D3.js line chart, with one line starting at different position
- Make two pie charts with the same d3js code
- How to combine two d3 objects into one for bulk operations
- D3 how to draw chart with a x data between two y data
- How to load CSV File in Angular JS to do charts
More Query from same tag
- C3.js horizontal bar chart - Highlight a specific x-axis tick together with bar
- Appending nested svg elements with D3js data binding?
- d3js timeline -- on scrub day generate a clean granular view for date and time
- how to use d3.js code in express framework
- How to add colorAxis to non-plotted categoryAxis?
- How to put different D3.js scripts on the same page without overlapping?
- d3 map shows empty with seemingly valid topojson data
- Don't get AngularJS and D3 to work - SVG Element is there but no chart is generated
- why node class 'selected' disappeared after brushend in d3
- D3js path : add a sensibility zone
- Grouping nested dada
- Why does ngDirective `template` allow for correct `clientHeight` but `templateUrl` gives 0
- how to conditionally append element in D3 .enter() function
- D3: Draw part of interpolated path with dashed stroke
- mouseover in js throws undefined error
- Can't create links between circles after appending new circles in d3.js
- How to add string text and a variable in d3.js text attribute?
- C3js timeseries can't show continuous line
- Multi-series Line Chart with d3.v3.js Ranges
- Make a d3 div resizable by drag
- how to detect element drag in d3.js force directed graph
- d3.js: why don't the columns in my column chart contain the full data?
- How to update selection with new data in D3?
- Nest data containing arrays with d3.nest
- not able to load external json file using d3.js
- D3 brush extent disappears from chart when dragged beyond extent
- d3 pan/zoom with DOM center point is off
- d3.js force layout namespace in a backbone view
- Network Graph D3. Different Lengths
- Using two selectAll on one axis