Git Product home page Git Product logo

crosslet's People

Contributors

cyrille37 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crosslet's Issues

SidekickJS detected issues in push

SidekickJS detected the following issues in this commit:

lib/cie.js 4 issues:

lib/topojson.js 30 issues:

src/js/barChart.js 29 issues:

Colorscale not showing up in the bar chart

Hi sztanko! Thanks for making such a great library for making it easy to deploying filterable maps with a nice UI. Much appreciated!

I'm having some trouble with making the colorscale appear in the bar chart graphs on this map here (http://nijel.org/oned/one-d-map.html). As you can see, the colorscale I've passed to crosslet works for the map, but not for the bar chart for some reason.

My config object looks like the following:

// format functions
var percentFormat = d3.format(",.1");
var numberFormat = d3.format(",.2");
var dollarFormat = d3.format("$,.0f");

var config = {
  map: {
    leaflet: {
        url: "http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",    // backup in case stamen layer doesn't work  
        attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'
    },
    view: {
      center: [42.5,-83.1],
      zoom: 9
    },
    geo: {
      url: "assets/topojson/detroit_region_fips_4326.geojson",
      name_field: "FIPS",
      id_field: "FIPS"
    }
  },
  data: {
    version: "1.0",
    id_field: "FIPS"
  },
  dimensions: {
      kirwanIndex: {
        title: "Kirwan Institute Opportunity Index",
        data: {
          dataSet: "data/kirwanData.csv",
          method: d3.csv,       
          field: "COMP",
          colorscale: d3.scale.linear().domain([1, 10, 20]).range([ "#1b7837", "#f0f0f0", "#20698a" ]).interpolate(d3.cie.interpolateLab),  
        },
        format: {
            short: function(){return function(d) {return numberFormat(d3.round(d, 2))}}, 
            long: function(){return function(d) {return numberFormat(d3.round(d, 2))}}, 
            input: function(){return Math.round},
            axis: function(){return function(d) {return numberFormat(d3.round(d, 2))}}, 
        } 
      }, 
      highSchoolCompletion: {
        title: "High School Completion Rate",
        data: {
          dataSet: "data/kirwanData.csv",
          method: d3.csv,       
          field: "EDU4",
          colorscale: d3.scale.linear().domain([1, 10, 20]).range([ "#20698a", "#f0f0f0", "#d94f26"]).interpolate(d3.cie.interpolateLab),  
        },
        format: {
            short: function(){return function(d) {return percentFormat(d3.round(d, 1)) + "%"}},
            long: function(){return function(d) {return percentFormat(d3.round(d, 1)) + "%"}},
            input: function(){return Math.round},
            axis: function(){return function(d) {return percentFormat(d3.round(d, 1)) + "%"}},
        } 
      }, 
      medianHHIncome: {
        title: "Median Household Income",
        data: {
          dataSet: "data/kirwanData.csv",
          method: d3.csv,       
          field: "EE2",
          colorscale: d3.scale.linear().domain([1, 10, 20]).range([ "#20698a", "#f0f0f0", "#87af3f"]).interpolate(d3.cie.interpolateLab),   
        },
        format: {
            short: function(){return function(d) {return dollarFormat(d)}},
            long: function(){return function(d) {return dollarFormat(d)}},
            axis: function(){return function(d) {return dollarFormat(d)}},
        } 
      }, 
      vacantProperty: {
        title: "Percent Vacant Property",
        data: {
          dataSet: "data/kirwanData.csv",
          method: d3.csv,       
          field: "N1",
          colorscale: d3.scale.linear().domain([1, 10, 20]).range([ "#a6c0d0", "#f0f0f0", "#f5a91d"]).interpolate(d3.cie.interpolateLab),   
        },
        format: {
            short: function(){return function(d) {return percentFormat(d3.round(d, 1)) + "%"}},
            long: function(){return function(d) {return percentFormat(d3.round(d, 1)) + "%"}},
            input: function(){return Math.round},
            axis: function(){return function(d) {return percentFormat(d3.round(d, 1)) + "%"}},
        } 
      }, 

  }, // close dimensions

  defaults: {
    order: ["kirwanIndex", "highSchoolCompletion", "medianHHIncome", "vacantProperty"],
    active: "kirwanIndex"
  },
}; 

Is there anything obvious I'm doing wrong?

Thanks!
JD

Range inputs are too small for their content

Digits in the range inputs are covered by the bottom and right borders of the input field.

fix to css (need to be converted to less):

#line 73 of crosslet.css:
.crosslet .crosslet_panel .box .legendText select, .crosslet * .crosslet_panel .box .legendText select, .crosslet .crosslet_panel .box .legendForm select, .crosslet * .crosslet_panel .box .legendForm select, .crosslet .crosslet_panel .box .legendText input[type="text"], .crosslet * .crosslet_panel .box .legendText input[type="text"], .crosslet .crosslet_panel .box .legendForm input[type="text"], .crosslet * .crosslet_panel .box .legendForm input[type="text"] {

REMOVE:
  height: 12px;
  padding-left: 4px;
FIX (otherwise inputs are of different width!): 
 width: auto; ->  width: 45px;

How to plot point data

This looks like an amazing project. Thanks so much!

It wasn't clear to me from the documentation how to plot geocoded point data. Can you add that to the documentation?

Missing data causes incorrect display on the geometry

I am trying to work with the world example... If I remove one of the line items for a country (in the data.tsv, for example, Australia), then the map still displays some dimensions for Australia (incorrect though).

SidekickJS detected issues in push

SidekickJS detected the following issues in this commit:

lib/cie.js 4 issues:

lib/topojson.js 30 issues:

src/js/barChart.js 29 issues:

Cloudmade discontinued free product

This was covered in the "updates" issue in a roundabout way, but probably deserves its own issue thread. Now that cloudmade has switched to an enterprise model (see leaflet issue here), crosslet could use a straightforward method for pointing to tiles from other providers.

For my purposes, I've just removed all the cloudmade-specific properties in crosslet.js and index files, then linked to some MapBox example tiles, but this might not be obvious to others.

Thanks for making a great little utility. It's been hugely useful thus far.

Version Nummber

Where is the version number located in the code? If it is there that is. I am attempting an integration with Drupal and the version number comes in handy.

New version of Crosslet

Hi all,

I think it is time for a new major version of Crosslet.

Things I would like to change:

  • minimize the usage of external libraries (ditch backbone, maybe underscore or/and jquery)
  • add support for non-cloudmade slippy maps
  • add support for arbitrary non-slippy maps with arbitrary projections
  • decent and simplified code ( I am not proud of the previous version)
  • grunt-based packaging

If you think there is anything else you would like to have in the new version, please comment here.

On another note, I am not likely to have time for this till summer. Volunteers are more then welcome.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.