Comments (6)
Thank you for sharing your solution. Wonderful that it works now. I will close the issue as solved. Feel free to comment further if needed.
Internal: FYI @hubertkozik .
from highcharts.
We get error on compile, so it's not an editor issue.
All we have is this import (to use ESM)
import Highcharts from 'highcharts/es-modules/masters/highcharts.src';
Then in our code:
export const DONUT_CHART_SERIES_BASE: Highcharts.SeriesPieOptions = {
type: 'pie',
data: []
};
This is the error:
Error: apps/accounts-and-resources/src/app/accounts-and-resources/highcharts.constants.ts:52:50 - error TS2724: '"D:/Git/cloud-ui/node_modules/highcharts/highcharts"' has no exported member named 'SeriesPieOptions'. Did you mean 'SeriesOptions'?
52 export const DONUT_CHART_SERIES_BASE: Highcharts.SeriesPieOptions = {
~~~~~~~~~~~~~~~~
from highcharts.
I can add this to our code:
type SeriesPieOptions = Highcharts.SeriesOptionsRegistry['SeriesPieOptions'];
Then use this new type alias instead:
export const DONUT_CHART_SERIES_BASE: SeriesPieOptions = {
type: 'pie',
data: []
};
This compiles but seems like a workaround and not proper way of doing it? Just want to confirm it.
from highcharts.
Hello @rbirkgit,
Thank you for the details. I need more information to have a chance of reproducing the issue.
Please provide the content of all tsconfig.json
, the building command, and additional configuration files related to it.
You can also take a look at this working project https://github.com/bre1470/testproject-es6 and compare it with your configuration.
from highcharts.
Thanks for the short sample. It all works fine there (adding our code). I now see what is going on.
Our code imported Highcharts in the main file. Then imported data from a model file. That model file didn't import Highcharts itself. It somehow worked anyway for the code and types including other series. But not the SeriesPieOptions
. Go figure.
Adding the import of Highcharts at the top of the model file, the code compiles now without workarounds.
from highcharts.
I should be all set. Thanks for quick help!
from highcharts.
Related Issues (20)
- `decimalPoint` / `thousandsSep` not applied properly for `tooltip` and `dataLabels` when using `format` and `{point.y}` HOT 2
- Cannot increase size of legend symbol without increasing size of series point HOT 4
- Arrow Keys on heatmap Not Functional When Screenreader Active HOT 4
- Tooltip with `stickOnContact` and `outside` freezes when moving to another chart HOT 1
- Missing `pointOutsideOfBreak` property within the docs
- xAxis gridLines overflow when using mouse wheel zoom HOT 1
- New annotation position not respected after moving, copying and reexporting HOT 5
- Screen reader not reading legends HOT 3
- Font awesome icons missing in the gauge kpi demo
- Bug: Plotline label with verticalAlign: bottom should not extend lower than the edge of the chart HOT 2
- Customizing Navigator Button Style and Retrieving Last Selected Button Details HOT 8
- dataLabels overflow chart, when axis position is changed
- Support in tables as source for different thousand and decimal separators
- Column data labels are not contrasted with respect to plot background in case of Stacking and text outline is set to 0px. HOT 1
- getExtremesFromAll property loads and iterates on all points in DOM and slows down performance of chart render and scroll. HOT 5
- Restriction of keyboard navigation for specific keys not working HOT 1
- Ability to add a footer row to the DataGrid HOT 1
- Update map feature for Sweden
- Continuous Functions Module HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highcharts.