c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.35k stars 1.39k forks source link

Samples Not Working (pt2?) #2810

Closed kinekt4 closed 4 years ago

kinekt4 commented 4 years ago

Hello,

This is my first time with C3. I'm just checking out the samples and it's not working.

I believe either the paths are incorrect, or the source files are in the wrong place.

eg.

# ./htdocs/samples/api_axis_label.html
3: <link href="../css/c3.css" rel="stylesheet" type="text/css">
9: <script src="../js/c3.js"></script>

But the directory structure is like so:

.
├── htdocs
│   ├── css
│   │   ├── bootstrap.min.css
│   │   ├── index.css
│   │   └── style.css
│   ├── data
│   ├── favicon.png
│   ├── index.html
│   ├── js
│   │   ├── extensions -> ../../extensions/js
│   │   ├── require.js
│   │   └── samples
│   │       ├── plugin.js
│   │       ├── requirejs.js
│   │       └── zoom_reduction.js
│   └── samples
│       ├── api_axis_label.html
│       ├── api_axis_range.html
│       ├── api_category.html

The source files can either be found in the base directory or the /docs/ directory

Re: Samples Not Working (pt1): #923

==========

kinekt4 commented 4 years ago

The source files are there after:

npm install -g grunt-cli
npm install
npm run build

Not sure why that is required especially when the c3.js and c3.css files are already available in the base directory.

Anyway, closing.