TRENDING NEWS

POPULAR NEWS

Which Graph Should I Use

What graph should I use?

A line graph with time on the horizontal axis and temperature on the vertical axis.

That is perfect.

Which type of graph should I use for this...?

You will find a set of data below in a table, it represents data about the costs per acre in fighting emergency forest fires over the past 20 years (not intentional or managed forest fires which were begun in 1995). These figures only include fire fighting in the National Forest System (NFS), which is managed by the United States Forest Service, a division of the United States Department of Agriculture. (Dollar amounts are adjusted to the 1999 dollar value.)

You are going to decide which type of graph to use, from the list of four. You want the graph which best shows the answers to the question, Is there a relationship between the cost of fighting emergency fires and the year in which the fires occurred? This might have been a question asked by the Forest Service as they budget money for the next year. The graph you are to make must be a good one for showing if there is a relationship and if so, what it is, for the question above.

The Data Table

Year Cost per acre burned (dollars)
1980 361
1981 588
1982 604
1983 700
1984 548
1985 336
1986 413
1987 288
1988 388
1989 741
1990 545
1991 819
1992 488
1993 623
1994 576
1995 933
1996 376
1997 640
1998 717
1999 977


Which Graph to Use

Now decide which type of graph would be best to show the relationship between the cost of fighting emergency fires and the year in which the fires occurred. The four types of graphs, you should recall, are bar graph, pie chart, line graph and scatter plot.

You decide - remember what each of the four types of graphs are best at showing:

Bar graph - compares items and relationships - a groups of things you want to compare
Pie chart - compare components of a whole set - a few parts to be compared
Line graph - time series and frequency distribution - one variable increases regularly as the other is compared
Scatter plot - compares two variables to see if they are related - sometimes they are and sometimes they are not
Which do you think will be best to use for the cost of fighting fires?

Should I use a Bar Graph or Histogram?

Use a histogram y-axis temp vs x-axis decade

Bar graphs are usually used to display "categorical data", that is data that fits into categories. For example suppose that I offered to buy donuts for six people and three said they wanted chocolate covered, 2 said plain and one said with icing sugar.

Histograms on the other hand are usually used to present "continuous data", that is data that represents measured quantity where, at least in theory, the numbers can take on any value in a certain range. A good example is weight. If you measure the weights of a group of adults you might get and numbers between say 90 pounds and 240 pounds. We usually report our weights as pounds or to the nearest half pound but we might do so to the nearest tenth of a pound or however acurate the scale is. The data would then be collected into categories to present a histogram.

Which graph database should be used?

There are many choices in the marketplace and we performed a recent review for a Fortune 500 company application. Basic scenario is something like this:Neo4J: Quite heavily adopted, user base is in 100,000s. Single instance use is allowed for free via community edition. License quite restrictive.. no backups or additional nodes. Supports Cypher--- proprietary graph querying language. Licesing is very costly. Supports TinkerPop/Gremlin. Comes with REST API and visual management studio that allows graph visualization BUT NOT graphical editing right out of the box.OrientdB: Has a fair bit of adoption. A strange beast.. document store and graph db combined. Supports a version of SQL. License is very relaxed, community version comes with multi-node deployment support, back-ups etc. Cost is plain disclosed: 1000 euro for first node and 500 euro for other nodes per annum. Supports TinkerPop/Gremlin. Comes with REST API and visual management studio that allows graph visualization AND graphical editing right out of the box.TitanDB: Pure play open source alternative. Generally combined with Cassandra or HBase or Berkeley with Solr/ElasticSearch to be usable. Not very right in feature set on its own but plays well with a lot of other technologies. Best support for TinkerPop/Gremlin (In fact, unlike other two... gremlin is its native communication language).  We went with OrientDB due to full feature set it brings (to be fair Neo4J also has a good graph only feature set), completeness of community version distributed server capabilities, incredible pricing and relaxed licensing terms.

Which graph would you use to show comparisons? 10 points?

line graphs

Describe the interval you would use for a bar graph if the data ranges from 12 to 39 units?

Since the two given values are multiples of 3, I'd go with an interval of 6 (i.e., 0,6,12,18,24,30,36, 42).

What are the use cases where graph database can be used?

Graph databases can be used for a wide variety of use cases, but the most common include:Fraud detection (for real-time link analysis in first-party bank fraud, insurance fraud or ecommerce fraud)Real-time recommendation engines (for ecommerce, retail, dating sites, media/content sites, etc.)Logistics and routingMaster Data Management (MDM) (for combining information around customers, products, orders, etc. Sometimes called Product Data Management, or PDM)Identity & Access Management (IAM) (also known as resource authorization and access control)Network security/monitoring or data center management (especially for impact analysis and real-time response to network attacks or downed devices. Many IT professionals use a graph database for their Configuration Management Database [CMDB])Graph-based search (for next-generation search capabilities in any domain where data relationships are paramount. For example, Google uses a graph database for their search function.)Social networks (for social media sites, dating sites, jobs/professional sites, or any application with a social function. Facebook, Twitter & LinkedIn all built in-house graph databases when they first started.)Of course, this isn't an exhaustive list, because graphs (i.e., the mathematical term for "networks") are very flexible and scalable, and have plenty of other use cases as well, including real-time analytics.Here is one resource that explains more on the top five use cases of graph databases: White Paper: The Top 5 Use Cases of Graph Databases

Which Graph database should I use for web development?

I presume you have no experience with graph databases (given the nature of the question), so good documentation and a large community will be important. Given these criteria — and the golang library requirement, Neo4j is an obvious first choice, see Using Neo4j from Go - Neo4j Graph Database.I don’t know whether Neo4j’s free is free enough for you, by which I mean that they use the AGPL-license. It’s been a source of confusion. From what I understand, if you don’t make any closed-source changes to the database itself, you should be fine. In other words: if you communicate with the Neo4J server over HTTP(S) without making any modifications to the server, you should be perfectly fine. For more on this: see AGPL License Question RE Neo4j

Should I use Open Graph Protocol as a web developer?

Yes, it’s a great way to promote pages on social media sites. Here is a tool that will simplify writing the code: Facebook Open Graph and Twitter Card Helper

TRENDING NEWS