Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut first release and post example to bl.ocks.org #15

Closed
9 tasks done
curran opened this issue Dec 5, 2015 · 3 comments
Closed
9 tasks done

Cut first release and post example to bl.ocks.org #15

curran opened this issue Dec 5, 2015 · 3 comments

Comments

@curran
Copy link
Collaborator

curran commented Dec 5, 2015

@curran
Copy link
Collaborator Author

curran commented Dec 7, 2015

This first release will follow the practice of shimming D3 and other modules out of the bundle.

@curran
Copy link
Collaborator Author

curran commented Dec 7, 2015

Made partial progress on working browser build version:

    <!-- Load shared dependencies. -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
    <script src="http://curran.github.io/model/cdn/model-v0.2.4.js"></script>

    <!-- Load the Chiasm stack. -->
    <script src="http://chiasm-project.github.io/chiasm/chiasm-v0.3.0.js"></script>
    <script src="http://chiasm-project.github.io/chiasm-component/chiasm-component-v0.2.3.js"></script>
    <script src="http://chiasm-project.github.io/chiasm-layout/chiasm-layout-v0.2.1.js"></script>
    <script src="http://chiasm-project.github.io/chiasm-dataset-loader/chiasm-dataset-loader-v0.3.1.js"></script>
    <script src="http://chiasm-project.github.io/chiasm-data-reduction/chiasm-data-reduction-v0.3.0.js"></script>
    <script src="http://chiasm-project.github.io/chiasm-links/chiasm-links-v0.2.1.js"></script>
    <script src="http://chiasm-project.github.io/chiasm-charts/chiasm-charts-v0.1.0.js"></script>

...
      // Register core Chiasm components.
      chiasm.plugins.layout        = ChiasmLayout;
      chiasm.plugins.links         = ChiasmLinks;
      chiasm.plugins.datasetLoader = ChiasmDatasetLoader;
      chiasm.plugins.dataReduction = ChiasmDataReduction;

      // Register chart types from chiasm-charts.
      chiasm.plugins.scatterPlot = ChiasmCharts.components.scatterPlot;
      chiasm.plugins.lineChart   = ChiasmCharts.components.lineChart;
      chiasm.plugins.barChart    = ChiasmCharts.components.barChart;
      chiasm.plugins.heatMap     = ChiasmCharts.components.heatMap;
      chiasm.plugins.boxPlot     = ChiasmCharts.components.boxPlot;

This would have much fewer script tags if Chiasm had a default build with all these modules in it chiasm-project/chiasm#57 .

@curran
Copy link
Collaborator Author

curran commented Dec 8, 2015

This is the example http://bl.ocks.org/curran/46050d18d5ec1ab401fa

@curran curran closed this as completed Dec 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant